qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] fix possible NULL pointer use in hw/ptimer.c


From: Markus Hitter
Subject: Re: [Qemu-devel] [PATCH] fix possible NULL pointer use in hw/ptimer.c
Date: Fri, 4 Jan 2008 18:29:27 +0100


Am 03.01.2008 um 15:02 schrieb Paul Brook:

Having to check every return value is extremely tedious and (as you've proved)
easy to miss.

Checking every return value is a measure for programming reliable code.

If the allocation fails we don't have any viable alternatives, so we may as well stop right there.

Stop != segfault? What about a meaningful exit message? What if the code doesn't segfault but runs havok?


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/








reply via email to

[Prev in Thread] Current Thread [Next in Thread]