Details
-
Bug
-
Resolution: Duplicate
-
Minor - P4
-
None
-
None
-
None
-
None
-
latest from git, Fedora 14, x86_64
-
Minor Change
Description
There are two unchecked malloc calls in the void-typed gridfs_store_stream_init function.
To handle the possibility of NULL return, the function must return non-void. I chose "int"
in the attached patch.
Also, it's cleaner to use "strdup" rather than the combination of malloc and strcpy.
Attachments
Issue Links
- duplicates
-
CDRIVER-45 unchecked malloc and realloc in gridfs_store_stream
-
- Closed
-
- is duplicated by
-
CDRIVER-44 use strdup in place of malloc+strcpy
-
- Closed
-