[MDEV-20917] InnoDB is passing NULL to nonnull function parameters Created: 2019-10-29 Updated: 2019-10-29 Resolved: 2019-10-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.2.28, 10.3.19, 10.4.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | undefined | ||
| Description |
|
mysql-test-run on a WITH_UBSAN server (unoptimized debug build with GCC) revealed that InnoDB is passing NULL parameters to some functions. There is way more undefined behaviour outside InnoDB code; I did not investigate those. For the 10.5-based branch that I tested, there were 108,378 occurrences total; 67 for InnoDB. |
| Comments |
| Comment by Marko Mäkelä [ 2019-10-29 ] |
|
I ported the relevant fixes from 10.5 and tested 10.2, 10.3, 10.4. The final 10.4 fix depends on a merge of the fix from 10.3. |