Coverity fixes for pkg_editor_test.cpp by tylerzhao7684 · Pull Request #291 · intel/fpga-runtime-for-opencl (original) (raw)
Navigation Menu
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
This repository was archived by the owner on Mar 2, 2026. It is now read-only.
Conversation
Fixed the following coverity issues:
- Adding assert to make sure the result is nullptr before returning in TEST(create, bad_flags)
- Change strncmp(buf, file1, strlen(file0) to strncmp(buf, file1, strlen(file1) to avoid copy paste error in TEST(sample_file, update_same_size)
- Add assert(fd > 0) and assert(old_stdin > 0) to make sure positive parameter is passed to dup() and dup2() in TEST(package, unpack_buffer_stdin)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})