Ticket #2 (closed defect: fixed)
storage_mysql.c sometimes increases buf an incorrect amount before writing to it
| Reported by: | smoku | Owned by: | smoku |
|---|---|---|---|
| Priority: | major | Component: | storage |
| Version: | 2.1 | Keywords: | |
| Cc: | Tracforge_linkmap: | ||
| Blocking: | Blocked By: | 227 |
Description
I found two calls to the MYSQL_SAFE macro in sm/storage_mysql.c that don’t increase a buffer enough before writing to it. This results in writing to some memory that shouldn’t be written to. There were also a few places where the buffer was being increased more than needed. See the attached patch for fixes (the first hunk and the last hunk are the important two!)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
