Opened 13 years ago

Closed 13 years ago

#3807 closed defect (fixed)

Unchecked malloc()s in common filters

Reported by: ejn Owned by: assefa
Priority: normal Milestone: 6.0 release
Component: MapServer C Library Version: svn-trunk (development)
Severity: normal Keywords: common filters, malloc, unchecked
Cc:

Description

In mapogcfiltercommon.c are 4 unchecked malloc()s: two strings, one expressionObj and one shapeObj. The attached patch converts them all to msSmallMalloc()s as a quick fix: in the case of expressionObj and shapeObj maybe MS_CHECK_ALLOC could be considered.

Attachments (1)

ms-svn-patch_commonfilter-malloc.patch (1.7 KB ) - added by ejn 13 years ago.
Patch to change unchecked malloc()s to msSmallMalloc()s in mapogcfiltercommon.c

Download all attachments as: .zip

Change History (2)

by ejn, 13 years ago

Patch to change unchecked malloc()s to msSmallMalloc()s in mapogcfiltercommon.c

comment:1 by assefa, 13 years ago

Resolution: fixed
Status: newclosed

thx. applied in r11462

Note: See TracTickets for help on using tickets.