Bug #105870 Return error not get checked
Submitted: 11 Dec 2021 19:40 Modified: 12 Dec 2021 13:10
Reporter: Li Zhong Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Errors Severity:S3 (Non-critical)
Version:8.0.27 OS:Linux
Assigned to: CPU Architecture:Any

[11 Dec 2021 19:40] Li Zhong
Description:
Following return value that record error are not checked, which are bugs that may leave failure out and corrupt the execution:

Variable	File					Line
res		sql/binlog.cc				9068
res		sql/binlog.cc				9078
result		sql/sql_base.cc				3798
result		sql/sql_base.cc				3800
error		sql/sql_parse.cc			5135
error		storage/innobase/handler/ha_innodb.cc	19455
error		sql/window_iterators.cc			223
error		sql/binlog.cc				5584
error		storage/myisam/ha_myisam.cc		870
error		storage/myisam/mi_log.cc		90
error		storage/myisam/mi_log.cc		147

This return value are set but not used, which may require a saniry check.

How to repeat:
In source code of 8.0.27

Suggested fix:
Add sanity check
[12 Dec 2021 13:10] MySQL Verification Team
Hello Li Zhong,

Thank you for the report.

regards,
Umesh