[pixbuf] Avoid potential division by zero
authorMichael Brown <mcb30@ipxe.org>
Wed, 22 Mar 2017 12:11:19 +0000 (14:11 +0200)
committerMichael Brown <mcb30@ipxe.org>
Wed, 22 Mar 2017 12:11:19 +0000 (14:11 +0200)
commit966a960a8333a9d75da8103cbe5903d380ef7770
treed7187ce48c9a815e33f1d5957146ec60462c38a9
parent45f2265bfcbbf2afd7fac24372ae26e453f2b52d
[pixbuf] Avoid potential division by zero

Avoid potential division by zero when performing the check against
multiplication overflow.  (Note that if the width is zero then there
can be no overflow anyway, so it is then safe to bypass the check.)

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/pixbuf.c