Bug #108509 Return value of rbt_search() not get checked
Submitted: 16 Sep 2022 0:17 Modified: 16 Sep 2022 5:25
Reporter: Li Zhong Email Updates:
Status: Verified Impact on me:
Category:MySQL Server: FULLTEXT search Severity:S2 (Serious)
Version:8.0.21 OS:Any
Assigned to: CPU Architecture:Any

[16 Sep 2022 0:17] Li Zhong
In https://github.com/mysql/mysql-server/blob/f8cdce86448a211511e8a039c62580ae16cb96f5/storag..., rbt_search could return error but now it's unchecked.

How to repeat:
We find this by our static analysis tool. The analysis result is checked manually.

Suggested fix:
ut_ad(rbt_search(rows, &parent, &doc_id));
[16 Sep 2022 0:17] Li Zhong
Another similar bug at https://github.com/mysql/mysql-server/blob/f8cdce86448a211511e8a039c62580ae16cb96f5/storag...
[16 Sep 2022 5:25] MySQL Verification Team
Hello Li Zhong,

Thank you for the report and feedback.