Bug #108514 Return value of Gtid_set::ensure_sidno(int) not get checked
Submitted: 16 Sep 2022 1:10 Modified: 16 Sep 2022 5:52
Reporter: Li Zhong Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Replication Severity:S2 (Serious)
Version:8.0.21 OS:Any
Assigned to: CPU Architecture:Any

[16 Sep 2022 1:10] Li Zhong
Description:
In https://github.com/mysql/mysql-server/blob/f8cdce86448a211511e8a039c62580ae16cb96f5/sql/rp... the error code from Gtid_set::ensure_sidno(int) is unchecked. 

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

Suggested fix:
It could probably be checked with PROPAGATE_REPORTED_ERROR().
[16 Sep 2022 5:52] MySQL Verification Team
Hello Li Zhong,

Thank you for the report and feedback.

regards,
Umesh