On Jun 01 13:26:04, h...@stare.cz wrote:
> > So here's a version (rewriting xmalloc.c completely,
> > so see the whole file below instead of a diff):
> > 
> > If the caller requests zero bytes, log the case and fail.
> > Let's see the fallout; where in sox do we ask for zero bytes?
> > 
> > If size > 0 and malloc fails, fail right away, obviously
> > - displaying the system error, not one made up.
> > 
> > Otherwise, return the malloc() result.
> 
> Here is a better version: if the *alloc failed, fail;
> otherwise, just return whatever the caller asked for.

https://github.com/janstary/sox/commit/5819fcb0b9c94eb38705b9c13d51f155ba02302d



_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel

Reply via email to