Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PVS-Studio: CWE-476 NULL Pointer Dereference #103

Closed
ivanovivantula opened this issue Apr 26, 2017 · 1 comment
Closed

PVS-Studio: CWE-476 NULL Pointer Dereference #103

ivanovivantula opened this issue Apr 26, 2017 · 1 comment

Comments

@ivanovivantula
Copy link

We have found a weakness using PVS-Studio tool. PVS-Studio is a static code analyzer for C, C++ and C#:
PVS-Studio on Visual Studio Marketplace

Analyzer warning: V595 The 'buf' pointer was utilized before it was verified against nullptr. Check lines: 185, 190. ejoy2d spritepack.c 185
A link to the source code.

@cloudwu
Copy link
Contributor

cloudwu commented Apr 26, 2017

It's ok. ialloc() always returns enough memory.

@cloudwu cloudwu closed this as completed Apr 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants