Hi, Similar to previous patches replacing malloc & memset with calloc, this time in src/bin/systrace/intercept.c
Index: intercept.c =================================================================== RCS file: /cvs/src/bin/systrace/intercept.c,v retrieving revision 1.60 diff -u -p -u -r1.60 intercept.c --- intercept.c 4 Dec 2012 02:24:47 -0000 1.60 +++ intercept.c 24 Apr 2014 01:20:47 -0000 @@ -155,12 +155,11 @@ intercept_register_translation(char *emu errx(1, "%s: %s-%s: can't find call back", __func__, emulation, name); - tlnew = malloc(sizeof(struct intercept_translate)); + tlnew = calloc(1, sizeof(struct intercept_translate)); if (tlnew == NULL) - err(1, "%s: %s-%s: malloc", + err(1, "%s: %s-%s: calloc", __func__, emulation, name); - memcpy(tlnew, tl, sizeof(struct intercept_translate)); tlnew->off = offset; TAILQ_INSERT_TAIL(&tmp->tls, tlnew, next); -- Peter Malone <pe...@petermalone.org>
intercept.c
Description: Binary data