Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- APR_DECLARE(char *)
- apr_cpystrn(char *dst, const char *src, apr_size_t dst_size);
- APR_DECLARE(apr_status_t) apr_dir_read(....)
- {
- ....
- char *fspec = (char*)wdirname;
- ....
- apr_cpystrn(fspec, thedir->dirname, sizeof(fspec));
- ....
- }
- This suspicious code was found in apr project by PVS-Studio static code analyzer.
- Warning message is:
- V579 The apr_cpystrn function receives the pointer and its size as arguments. It is possibly a mistake. Inspect the third argument. dir.c 250
- 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