Memory corruption/valgrind warning/crash in move_hole() with ST_UNION
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Undecided
|
Alexey Botchkov |
Bug Description
valgrind reports:
==14982== Thread 4:
==14982== Invalid read of size 1
==14982== at 0x40087CA: memmove (mc_replace_
==14982== by 0x8366572: Gcalc_result_
==14982== by 0x83679B3: Gcalc_operation
==14982== by 0x825BED5: Item_func_
==14982== by 0x82593E2: Item_func_
==14982== by 0x81DB7D0: Item::send(
==14982== by 0x8288EB7: select_
==14982== by 0x8325D07: JOIN::exec() (sql_select.
==14982== by 0x8328723: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_
==14982== by 0x83205EE: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:283)
==14982== by 0x82BBD1E: execute_
==14982== by 0x82B2B22: mysql_execute_
==14982== by 0x82BE35A: mysql_parse(THD*, char*, unsigned int, char const**) (sql_parse.cc:6083)
==14982== by 0x82B07BE: dispatch_
==14982== by 0x82AFC44: do_command(THD*) (sql_parse.cc:904)
==14982== by 0x82ACCBF: handle_
==14982== Address 0x593c817 is 1 bytes before a block of size 1,052 alloc'd
==14982== at 0x4005E9E: malloc (vg_replace_
==14982== by 0x87868EC: _mymalloc (safemalloc.c:138)
==14982== by 0x8786ECE: _myrealloc (safemalloc.c:254)
==14982== by 0x829A717: String:
==14982== by 0x829B863: String:
==14982== by 0x8366026: Gcalc_result_
==14982== by 0x83676C1: Gcalc_operation
==14982== by 0x83677AC: Gcalc_operation
==14982== by 0x836798D: Gcalc_operation
==14982== by 0x825BED5: Item_func_
==14982== by 0x82593E2: Item_func_
==14982== by 0x81DB7D0: Item::send(
==14982== by 0x8288EB7: select_
==14982== by 0x8325D07: JOIN::exec() (sql_select.
==14982== by 0x8328723: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_
==14982== by 0x83205EE: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:283)
==14982==
test case:
SELECT AsText( ST_UNION( MultiPolygonFro
Related branches
Changed in maria: | |
milestone: | none → 5.3 |
assignee: | nobody → Alexey Botchkov (holyfoot) |
summary: |
- Memory corruption/valgrind warning/crash with ST_UNION + Memory corruption/valgrind warning/crash in move_hole() with ST_UNION |
Changed in maria: | |
status: | Fix Committed → Fix Released |
fix pushed into 5.3-gis.