#883 closed Defect (fixed)
Use-after-free bug in db/db_base.cpp
Reported by: | gombasg | Owned by: | davea |
---|---|---|---|
Priority: | Undetermined | Milestone: | Undetermined |
Component: | Server - Other | Version: | 6.6.20 |
Keywords: | Cc: |
Description
Hi,
valgrind caught an use-after-free bug in db_base.cpp; patch is attached.
Attachments (1)
Change History (6)
Changed 16 years ago by
comment:1 Changed 16 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:4 Changed 16 years ago by
A MYSQL_ROW
is a typedef for char**
; of course it's dynamically allocated. And even if it was a struct, MySQL API is C, not C++, so there wouldn't be any destructors that get called automatically.
comment:5 Changed 16 years ago by
Resolution: | worksforme → fixed |
---|
Note: See
TracTickets for help on using
tickets.
The result is freed, not the row.