unchecked mallocs
- From
- Marinescu Paul dan <pauldan.marinescu@epfl.ch>
- Date
- Jan 8, 2010, 21:59 UTC
- Message-ID
- <D6F784B72498304C93A8A4691967698E8EE2C45017@REX2.intranet.epfl.ch>
- In-Reply-To
- <D6F784B72498304C93A8A4691967698E8EE2C45016@REX2.intranet.epfl.ch>
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