|
From: | Kevin Wolf |
Subject: | Re: [Qemu-devel] [PATCH] Permit zero-sized qemu_malloc() & friends |
Date: | Mon, 07 Dec 2009 11:17:08 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Thunderbird/3.0b4 |
Am 07.12.2009 11:00, schrieb malc: >>>> Misunderstanding? Such behavior is indeed permissible, and I can't see >>>> where I restricted it away. An implementation that behaves as you >>>> describe returns "pointer to allocated space". That the pointer has >>>> some funny bit set doesn't matter. That it can't be dereferenced is >>>> just fine. >>>> > > Here you agree that it's permissible. He's just differentiating between values that are generally permissible in terms of the C standard... >> You can't just pull pointers out of your ear and expect stuff to work. > > And here you don't. Which renders whole discussion rather pointless. ...and values that can be used by a working implementation on Linux. That's quite a difference. It is obvious that a libc implementation must match the kernel, or nothing will work. Kevin
[Prev in Thread] | Current Thread | [Next in Thread] |