Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OPJ_SIZE_T opj_stream_write_skip (
- opj_stream_private_t * p_stream, ....)
- {
- ....
- if (!l_is_written)
- {
- p_stream->m_status |= opj_stream_e_error;
- p_stream->m_bytes_in_buffer = 0;
- p_stream->m_current_data = p_stream->m_current_data;
- return (OPJ_SIZE_T) -1;
- }
- ....
- }
- This suspicious code was found in OpenJPEG project by PVS-Studio static code analyzer.
- Warning message is:
- V570 The 'p_stream->m_current_data' variable is assigned to itself. cio.c 675
- 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