Opened 14 years ago
Closed 14 years ago
#556 closed defect (fixed)
Return value of snprintf not correctly checked
Reported by: | hopfgartner | Owned by: | pramsey |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
In loader/shp2pgsql-core.c the return value of snprintf is compared to -1. Anyway, in case of errors the return value might >= the buffer size if the output string was truncated or -1 for other errors see man snprintf.
Attachments (1)
Change History (3)
by , 14 years ago
Attachment: | shp2pgsql-core.c.diff added |
---|
comment:1 by , 14 years ago
Note:
See TracTickets
for help on using tickets.
Committed to trunk at r6360, thanks for the patch!