Opened 19 years ago

Last modified 16 years ago

#1198 closed defect

msSetError overflows error message buffer — at Initial Version

Reported by: jerry.pisk@… Owned by: sdlime
Priority: high Milestone:
Component: MapServer C Library Version: 4.4
Severity: major Keywords:
Cc: sgillies@…

Description

msSetError can overflow the error message buffer if the resulting error 
message is longer than MESSAGELENGTH. There is no way that I know of to 
prevent this in ANSI C but ISO C99 provides vsnprintf, which is what I used in 
the submitted patch.

Change History (1)

by jerry.pisk@…, 19 years ago

Attachment: maperror.c.patch added

maperror.c patch

Note: See TracTickets for help on using tickets.