OSLib bug fixes (various)
Tony van der Hoff
OSLib at mk-net.demon.co.uk
Fri Jan 12 15:07:47 GMT 2001
On Fri, 12 Jan 2001, at 12:31:48, Daniel Ellis <Daniel.Ellis at pace.co.uk>
wrote on the subject "OSLib bug fixes (various)":
>On Fri 12 Jan, Tony van der Hoff wrote:
>>
>> >+ Fixed null pointer dereferences in IndexHelp, BindHelp and DefMod -cstrong
>> The SCL, at least, treats null pointers to a string argument to *printf
>> the same as a pointer to a null string. However, I accept that this
>> behaviour is not defined, so I guess your proposal makes it more
>> portable.
>
>I'm not sure what you mean there. There's no check in the SCL for the
>argument to printf being null. printf(0) gives oflaofla... and if zero page
>(reading) is protected will cause a data abort.
>
What I mean is
printf( "%s", NULL ) behaves the same way as printf( "%s", "" )
--
Tony van der Hoff | mailto:OSLib at mk-net.demon.co.uk
Buckinghamshire, England | http://www.mk-net.demon.co.uk/oslib/
----------------------------------------------------------------
More information about the oslib-user
mailing list