xserver/record
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alan Coopersmith dadb0791eb Only free pContext once when AddResource fails in ProcRecordCreateContext
Since RecordDeleteContext frees its argument, don't fall through to free
it again.

Error: Double free (CWE 415)
   Double free of pointer 'malloc(1072)' defined by malloc
        at line 1964 of record/record.c in function 'ProcRecordCreateContext'.
          Previously freed at line 1960 with RecordDeleteContext.
          'malloc(1072)' was allocated at line 1926 with malloc.

[ This bug was found by the Parfait 0.3.7 bug checking tool.
  For more information see http://labs.oracle.com/projects/parfait/ ]

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-05-02 20:38:03 -07:00
..
Makefile.am get rid of XFree86LOADER, XFree86Server, XFree86Module, and IN_MODULE 2006-07-18 18:17:38 -04:00
record.c Only free pContext once when AddResource fails in ProcRecordCreateContext 2011-05-02 20:38:03 -07:00
set.c Remove more superfluous if(p) checks around free(p) 2010-06-06 20:27:18 +07:00
set.h Death to RCS tags. 2007-06-29 14:06:52 -04:00