Closed tylerzhao7684 closed 1 year ago
Fixed the following coverity issues:
result
TEST(create, bad_flags)
strncmp(buf, file1, strlen(file0)
strncmp(buf, file1, strlen(file1)
TEST(sample_file, update_same_size)
assert(fd > 0)
assert(old_stdin > 0)
dup()
dup2()
TEST(package, unpack_buffer_stdin)
Fixed the following coverity issues:
result
is nullptr before returning inTEST(create, bad_flags)
strncmp(buf, file1, strlen(file0)
tostrncmp(buf, file1, strlen(file1)
to avoid copy paste error inTEST(sample_file, update_same_size)
assert(fd > 0)
andassert(old_stdin > 0)
to make sure positive parameter is passed todup()
anddup2()
inTEST(package, unpack_buffer_stdin)