Opened 19 years ago

Last modified 16 years ago

#1198 closed defect

msSetError overflows error message buffer — at Version 2

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

Description (last modified by hobu)

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 (3)

by jerry.pisk@…, 19 years ago

Attachment: maperror.c.patch added

maperror.c patch

comment:1 by sgillies@…, 19 years ago

Cc: sgillies@… added

comment:2 by hobu, 17 years ago

Description: modified (diff)

Is this one long dead?

Note: See TracTickets for help on using tickets.