Opened 19 years ago
Closed 16 years ago
#1198 closed defect (fixed)
msSetError overflows error message buffer
Reported by: | Owned by: | sdlime | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapServer C Library | Version: | 4.4 |
Severity: | major | Keywords: | |
Cc: | sgillies@… |
Description (last modified by )
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.
Attachments (1)
Change History (5)
by , 19 years ago
Attachment: | maperror.c.patch added |
---|
comment:1 by , 19 years ago
Cc: | added |
---|
comment:4 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Grepping for snprintf reports many hits, so I assume that using vsnprintf is also ok. Closing.
Note:
See TracTickets
for help on using tickets.
maperror.c patch