Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef __int64 ogg_int64_t;
- ogg_int64_t pcm_offset;
- int ov_pcm_seek(OggVorbis_File *vf,ogg_int64_t pos){
- ....
- int hs = ....;
- long samples=....;
- ....
- vf->pcm_offset+=samples<<hs;
- ....
- }
- This suspicious code was found in JUCE project by PVS-Studio static code analyzer.
- Warning message is:
- V629 Consider inspecting the 'samples << hs' expression. Bit shifting of the 32-bit value with a subsequent expansion to the 64-bit type. vorbisfile.c 1676
- 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
Advertisement