Changeset 1078 for trunk/fm3.c


Ignore:
Timestamp:
Jul 19, 2008, 6:08:02 AM (17 years ago)
Author:
Steven Levine
Message:

More Fortify infrastructure enhancements
Rework Fortify_SetOwner
Add Fortify_BecomeOwner
Avoid more spurious leak reports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fm3.c

    r1077 r1078  
    2222#include "dll\tools.h"
    2323#include "dll\version.h"
     24#include "dll\errutil.h"
    2425#include "dll\fortify.h"
    2526#include "dll\fm3dll.h"
     
    6667          }
    6768#         ifdef FORTIFY
    68           Fortify_LeaveScope();
     69          for (;;) {
     70            UCHAR scope = Fortify_LeaveScope();
     71            if ((CHAR)scope == 0)
     72              break;
     73            Runtime_Error(__FILE__, __LINE__, "Attempting to exit thread with scope non-zero (%u)", scope);
     74            if ((CHAR)scope < 0)
     75              break;
     76          }
    6977#         endif
    7078        }
Note: See TracChangeset for help on using the changeset viewer.