[MDEV-22689] MSAN use-of-uninitialized-value in decode_bytes() Created: 2020-05-25 Updated: 2020-06-15 Resolved: 2020-06-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - MyISAM |
| Affects Version/s: | 10.5 |
| Fix Version/s: | 10.5.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | MSAN, MyISAM | ||
| Issue Links: |
|
||||||||
| Description |
|
The test main.myisampack is failing as follows:
The code in decode_bytes() is as follows:
The failing statement is right before the if statement. Note: Please adjust the affectedVersion and fixVersion. I only tested 10.5. |
| Comments |
| Comment by Michael Widenius [ 2020-06-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tested with valgrind and no issue I also find a bit strange that there could be any issues as there are checksums for rows and data hm.. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2020-06-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I tried the following patch:
You may want to use VALGRIND_CHECK_MEM_IS_DEFINED() instead.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2020-06-08 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Fixed in my 10.5 tree, will be pushed shortly together with other changes | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2020-06-15 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Fix pushed into 10.5.4 This was not user visible issue as the huffman code lookup tables would automatically ignore any of the uninitialised bits |