Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BIO_write(bp,"Error in encoding\n",18)
- BIO_write(bp,"\n",1)
- BIO_write(bp,":",1)
- BIO_write(bp,":BAD OBJECT",11)
- BIO_write(bp,"Bad boolean\n",12)
- static int asn1_parse2(....)
- {
- ....
- if (BIO_write(bp,"BAD ENUMERATED",11) <= 0)
- goto end;
- ....
- }
- This suspicious code was found in OpenSSL project by PVS-Studio static code analyzer.
- Warning message is:
- V666 Consider inspecting third argument of the function 'BIO_write'. It is possible that the value does not correspond with the length of a string which was passed with the second argument. asn1_par.c 378
- 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