Changeset 1009 for trunk/dll/arccnrs.c


Ignore:
Timestamp:
May 10, 2008, 9:51:58 AM (17 years ago)
Author:
Steven Levine
Message:

Add xfree xstrdup Fortify support
Add MT capable Fortify scope logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/arccnrs.c

    r1004 r1009  
    13361336        }
    13371337      }
    1338       xfree((CHAR *) mp2);
     1338      xfree((CHAR *)mp2, pszSrcFile, __LINE__);
    13391339      PostMsg(pdt->hwndClient, DM_RENDERCOMPLETE, MPFROMP(pdt),
    13401340              MPFROM2SHORT(usRes, 0));
     
    14381438        if (!dcd->info->extract) {
    14391439          Runtime_Error(pszSrcFile, __LINE__, "no extract");
    1440           xfree(s);
     1440          xfree(s, pszSrcFile, __LINE__);
    14411441          return 0;
    14421442        }
     
    14681468        }
    14691469        // printf("%s %d UM_ENTER %s %s\n",__FILE__, __LINE__,filename, s); fflush(stdout);     // 10 Mar 07 SHL hang
    1470         xfree(s);
     1470        xfree(s, pszSrcFile, __LINE__);
    14711471        if (IsFile(filename) == 1) {
    14721472#if 1 // 06 Oct 07 SHL fixme to be gone - set to 0 for ticket #58 testing
     
    17471747                  strcat(p, temp);
    17481748                  li->list[x] = p;
    1749                   xfree(temp);
     1749                  xfree(temp, pszSrcFile, __LINE__);
    17501750                }
    17511751              }
     
    19941994      FreeList(dcd->lastselection);
    19951995      WinSendMsg(dcd->hwndCnr, UM_CLOSE, MPVOID, MPVOID);
    1996       xfree(dcd);
     1996      xfree(dcd, pszSrcFile, __LINE__);
    19971997      WinSetWindowPtr(dcd->hwndCnr, QWL_USER, NULL);
    19981998    }
     
    25412541      ret = StartMLEEditor(dcd->hwndParent,
    25422542                           (INT) mp1, (CHAR *) mp2, dcd->hwndFrame);
    2543       xfree((CHAR *) mp2);
     2543      xfree((CHAR *) mp2, pszSrcFile, __LINE__);
    25442544      return MRFROMLONG(ret);
    25452545    }
     
    29082908                BldFullPathName(s, dcd->workdir, li->list[x]);
    29092909                if (IsFile(s) != 1) {
    2910                   xfree(li->list[x]);
     2910                  xfree(li->list[x], pszSrcFile, __LINE__);
    29112911                  li->list[x] = NULL;
    29122912                  for (y = x; li->list[y]; y++)
     
    29202920                  p = xstrdup(s, pszSrcFile, __LINE__);
    29212921                  if (p) {
    2922                     xfree(li->list[x]);
     2922                    xfree(li->list[x], pszSrcFile, __LINE__);
    29232923                    li->list[x] = p;
    29242924                  }
     
    29682968            }
    29692969            else
    2970               xfree(li);
     2970              xfree(li, pszSrcFile, __LINE__);
    29712971          }
    29722972        }
     
    32293229              if (!PostMsg(dcd->hwndObject, UM_ENTER, MPFROMP(s), MPVOID)) {
    32303230                Runtime_Error(pszSrcFile, __LINE__, "post");
    3231                 xfree(s);
     3231                xfree(s, pszSrcFile, __LINE__);
    32323232              }
    32333233            }
     
    35223522                     IDS_WINCREATEWINDOW);
    35233523          PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID);
    3524           xfree(dcd);
     3524          xfree(dcd, pszSrcFile, __LINE__);
    35253525          hwndFrame = (HWND) 0;
    35263526        }
Note: See TracChangeset for help on using the changeset viewer.