Bug #105435 | InnoDB: mem_heap_alloc(heap, 0) returns non-null pointer | ||
---|---|---|---|
Submitted: | 3 Nov 2021 3:23 | Modified: | 3 Nov 2021 4:58 |
Reporter: | Shaohua Wang (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | 8.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | Contribution |
[3 Nov 2021 3:23]
Shaohua Wang
[3 Nov 2021 3:25]
Shaohua Wang
check zero alloc functions
Attachment: mem_heap_alloc_zero_check.patch (application/octet-stream, text), 6.11 KiB.
[3 Nov 2021 3:26]
Shaohua Wang
the above file shows functions allocates 0 length memory(found by running innodb suite)
[3 Nov 2021 4:58]
MySQL Verification Team
Hello Shaohua, Thank you for the report and contribution. Please ensure to attach the patch via contribution tab otherwise we would not be able to use it. Thank you! regards, Umesh
[3 Nov 2021 7:47]
Shaohua Wang
Contributed patch (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: mem_heap_alloc_zero.patch (application/octet-stream, text), 816 bytes.
[3 Nov 2021 8:15]
MySQL Verification Team
Thank you, Shaohua. regards, Umesh
[16 Nov 2021 7:07]
Shaohua Wang
Contributed patch (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: mem_heap_alloc_zero_contribution.patch (application/octet-stream, text), 1.89 KiB.
[16 Nov 2021 8:19]
MySQL Verification Team
Thank you, Shaohua. regards, Umesh