0.8.1: PVS Studio flagged buffer underflows in the state reset functions #625

Closed
opened 2021-11-30 12:44:32 -06:00 by kcgen · 0 comments
kcgen commented 2021-11-30 12:44:32 -06:00 (Migrated from github.com)

2021-11-30_10-07
2021-11-30_10-08

My guess is it's detecting the use of the reserved portion, which if coming from malloc (for the memory behind the incoming state pointer), might contain garbage.

![2021-11-30_10-07](https://user-images.githubusercontent.com/1557255/144107976-915a7b4e-cea1-48c7-84b1-f13c8a0806cb.png) ![2021-11-30_10-08](https://user-images.githubusercontent.com/1557255/144107980-f0e08520-ca31-412c-b326-bb5e52cea324.png) My guess is it's detecting the use of the reserved portion, which if coming from malloc (for the memory behind the incoming state pointer), might contain garbage.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-Cyan4973/xxHash#625
No description provided.