OSLib bug fixes (various)

Daniel Ellis Daniel.Ellis at pace.co.uk
Fri Jan 12 12:31:48 GMT 2001


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.

> >+ os_int_on() and os_int_off() added as these can be called from user
> >   and 32 bit modes.
> Really? With valid APCS - this was the reason they weren't included in
> the first place.

These SWIs don't affect any registers, so why should APCS be of any
significance?

> >+ DefMod checks SWI numbers with |xos_swi_number_from_string|.

Surely this will error if the module supplying the SWI isn't resident?


-- 
Daniel Ellis, Senior Software Engineer,
Pace Micro Technology plc,
645 Newmarket Road,                               tel: +44 (0) 1223 518619
Cambridge, CB5 8PB                                WWW: http://www.pace.co.uk/




More information about the oslib-user mailing list