Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 5.5, 10.0, 10.1, 10.2, 10.3, 10.4, 10.5, 10.6, 10.7
-
Component/s: Storage Engine - InnoDB
-
Labels:
Description
The function pars_info_bind_id() is unnecessarily copying string keys. Not only is the parameter copy_name always being passed as nonzero, but that parameter could actually have always been specified as zero. For all calls except one, a compile-time constant string is being passed as a parameter. For the call in fts_get_select_columns_str() and fts_doc_fetch_by_doc_id(), the passed string will already be allocated from the same memory heap that pars_info_bind_id() is using.