Changeset 251


Ignore:
Timestamp:
Aug 16, 2005, 5:12:48 PM (20 years ago)
Author:
root
Message:

SBoxDlgProc: avoid dereferencing NULL signature

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/avl.c

    r248 r251  
    44  $Id$
    55
    6   archiver.bb2 loader and utilities
    7 
    8   Copyright (c) 1993-98 M. Kimes
     6  archiver.bb2 search, load, save and date parse
     7
     8  Copyright (c) 1993, 1998 M. Kimes
    99  Copyright (c) 2004, 2005 Steven H.Levine
    1010
     
    1212  13 Aug 05 SHL Beautify with indent
    1313  13 Aug 05 SHL find_type: correct no sig exists bypass logic
     14  13 Aug 05 SHL SBoxDlgProc: avoid dereferencing NULL signature
    1415
    1516***********************************************************************/
     
    1718#define INCL_WIN
    1819#define INCL_DOS
    19 
    2020#include <os2.h>
     21
    2122#include <stdlib.h>
    2223#include <stdio.h>
     
    2425#include <share.h>
    2526#include <ctype.h>
     27
    2628#include "fm3dll.h"
    2729#include "fm3dlg.h"
    2830#include "fm3str.h"
    2931
    30 BOOL loadedarcs = FALSE;
     32BOOL loadedarcs;
    3133
    3234#pragma alloc_text(MISC9,quick_find_type,find_type)
     
    487489                    while (test && test != temp)
    488490                    {
    489                         if (!strcmp(test -> signature, temp -> signature))
    490                             goto ContinueHere;
     491                        if (test -> signature && temp -> signature &&
     492                            !strcmp(test -> signature, temp -> signature))
     493                            goto ContinueHere;          // Got match
    491494                        test = test -> next;
    492495                    }
Note: See TracChangeset for help on using the changeset viewer.