-
Type:
Bug
-
Resolution: Done
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
415 static inline char *
416 dstrndup(const char *str, const size_t len)
417 {
418 char *p;
419 p = dcalloc(len + 1, 1);
420
deref_ptr_in_call: Dereferencing pointer p.
421 strncpy(p, str, len);
CID 1352899 (#1 of 1): Dereference before null check (REVERSE_INULL)
check_after_deref: Null-checking p suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
422 if (p == NULL)
423 die(errno, "dstrndup");
424 return (p);
425 }
- is depended on by
-
SERVER-23140 WiredTiger changes for MongoDB 3.3.4
-
- Closed
-
- links to