Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL)
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.