[MDEV-13595] mariadb-10.2.8/storage/maria/ma_loghandler.c:2730]: (style) Array index 'chunk_offset' is used before limits check. Created: 2017-08-20 Updated: 2017-10-05 Resolved: 2017-10-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Aria |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | 5.5.58, 10.0.33, 10.1.29, 10.2.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | David Binderman | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | cppcheck | ||
| Sprint: | 10.2.10 |
| Description |
|
Source code is
|
| Comments |
| Comment by Oleksandr Byelkin [ 2017-10-05 ] |
|
actually it is safe, because it returned by translog_get_first_chunk_offset which return offset in the page and offset is not 'limit' in the sense that all over if id some random memory, but yes it is better to fix to avoid such reports in future and have good example, thank you! |