commit | db6f8dc5dd5655b59368efd074994d4568bc3556 | [log] [download] |
---|---|---|
author | logan@openbsd.org <logan@openbsd.org> | Mon Nov 16 06:13:04 2015 +0000 |
committer | Damien Miller <djm@mindrot.org> | Tue Nov 17 11:15:20 2015 +1100 |
tree | 1baf6fdd01756294a939eceb63a4e4138e1e02b4 | |
parent | 383f10fb84a0fee3c01f9d97594f3e22aa3cd5e0 [diff] |
upstream commit 1) Use xcalloc() instead of xmalloc() to check for potential overflow. (Feedback from both mmcc@ and djm@) 2) move set_size just before the for loop. (suggested by djm@) OK djm@ Upstream-ID: 013534c308187284756c3141f11d2c0f33c47213