Browse Source
If there is no additional iface data then iface->extra is NULL and iface->extralen is zero. Passing NULL to memcpy is undefined behaviour even if the length of data to copy is zero. In other words a conforming (debug) memcpy implementation is permitted to assert(dst && src) without checking the value of n. Add an extra branch to avoid this.pull/309/merge
Daniel Thompson
10 years ago
committed by
Karl Palsson
1 changed files with 8 additions and 6 deletions
Loading…
Reference in new issue