Bug #102596 Unhandles return value in multiple places
Submitted: 15 Feb 2021 6:45 Modified: 16 Mar 2021 13:28
Reporter: Li Zhong Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Parser Severity:S3 (Non-critical)
Version:8.0 OS:Any
Assigned to: CPU Architecture:Any

[15 Feb 2021 6:45] Li Zhong
Description:
There are several places the return value are not handled, which could contain error code:
sql/sql_parse.cc Line 5395: "error"
storage/innobase/row/row0import.cc Line 3797: "err"
sql/sql_executor.cc: Line 4835: "error"
storage/innobase/gis/gis0rtree.cc: Line 875: "ret"
storage/innobase/os/os0enc.cc: Line 1214: "my_ret"
sql/item_func.cc: Line 7895: "res"
storage/innobase/arch/arch0recv.cc: Line 42: "err"

I wonder whether there needs to be any error handling mechanism or at least an assert here.

How to repeat:
It's in mysql-8.0.21

Suggested fix:
Add error handling mechanism or assert.
[15 Feb 2021 13:49] MySQL Verification Team
Hi Mr. Zhong,

Thank you for your bug report.

However, you are using an old release of the 8.0 version.

Can you, please, let us know the exact line numbers in the current release, 8.0.23.

Thanks in advance.
[16 Mar 2021 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".