Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JAWS_IO_Reactive_Transmit::handle_output_source
- (ACE_HANDLE handle)
- {
- ACE_Message_Block *mb = this->source_buf_;
- ...
- if (mb->length () > 0)
- result = this->handle_output_mb (handle, mb);
- if (result < 0) {
- ...
- } else if (mb == 0 && this->source_ == ACE_INVALID_HANDLE)
- this->source_buf_ = 0;
- ...
- }
- This suspicious code was found in ACE project by PVS-Studio static code analyzer.
- Warning message is:
- V595 The 'mb' pointer was utilized before it was verified against nullptr. Check lines: 455, 463. JAWS3 reactive_io.cpp 455
- 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