Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static enum clnt_stat
- clntraw_call (h, proc, xargs, argsp, xresults, resultsp, timeout)
- CLIENT *h;
- u_long proc;
- xdrproc_t xargs;
- caddr_t argsp;
- xdrproc_t xresults;
- caddr_t resultsp;
- struct timeval timeout;
- {
- struct clntraw_private_s *clp = clntraw_private;
- XDR *xdrs = &clp->xdr_stream;
- ....
- if (clp == NULL)
- return RPC_FAILED;
- ....
- }
- This suspicious code was found in glibc project by PVS-Studio static code analyzer.
- Warning message is:
- V595 The 'clp' pointer was utilized before it was verified against nullptr. Check lines: 145, 150. clnt_raw.c 145
- 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