Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void _SPR1interleave() {
- ...
- u32 *ptag;
- ...
- if (ptag == NULL) { <<<---
- SysPrintf("SPR1 Tag BUSERR\n");
- spr1->chcr = ( spr1->chcr & 0xFFFF ) |
- ( (*ptag) & 0xFFFF0000 ); <<<---
- psHu32(DMAC_STAT)|= 1<<15;
- done = 1;
- spr1finished = done;
- return;
- }
- ...
- }
- This suspicious code was found in pcsx2 project by PVS-Studio static code analyzer.
- Warning message is:
- V522 Dereferencing of the null pointer 'ptag' might take place. pcsx2 spr.cpp 376
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment