threads / discuss / 22136

unchecked mallocs

Subject: unchecked mallocs

## tl;dr

One message between Jan 8, 2010 and Jan 8, 2010.

replies: 0people: 1as markdown or json

Marinescu Paul dan· Jan 8, 2010, 21:59 UTC · lore

While checking out the git code in xdiff/xpatience.c and xdiff/xmerge.c I came across several (three) locations where the return values of xdl_malloc (#defined as malloc) is not checked. Shouldn't this be done here?

In git 1.6.6 the calls are at

xmerge.c:567 merge.c:571 xpatience.c:191

Paul

← back to recent threads