Details
-
Task
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
Description
Reported by marko, happens when building with -Og and in various components, and likely to pop up again from time to time, so I suggest we keep this ticket open and ongoing as more patches get reviewed and pushed for this issue.
For example, instead of
if ( |
!(db_name = get_field(mem_root, table->field[0])) ||
|
!(table_name = get_field(mem_root, table->field[1])) ||
|
!(link_id = get_field(mem_root, table->field[2]))
|
)
|
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
|
fix with
if (!(db_name = get_field(...)) |
DBUG_RETURN(...);
|
if (!(table_name = get_field(...)) |
DBUG_RETURN(...);
|
if (!(link_id = get_field(...)) |
DBUG_RETURN(...);
|
Attachments
Issue Links
- relates to
-
MDEV-35073 -Wmaybe-uninitialized in result of spider_conn_first_link_idx
- Closed