RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Previous|Next

  • Tickets
  • » Ticket #201

Ticket #201 (Fixed)Wed Apr 15 18:58:16 UTC 2009

Documentation change: size of error buffer

Reported by: Ben Avison (25) Severity: Normal
Part: RISC OS: Documentation Release:
Milestone: Status Fixed

Details by Ben Avison (25):

A fix to be made to the documentation of error handlers once the PRMs are online…

Since always, the default ErrorV handler in the kernel has filled in the error buffer supplied by the installed error handler on the assumption that you can fit a 4-byte error address as well as a 256-byte error block into it – which requires a buffer of 260 bytes. However, the PRM documented the error buffer size to be 256 bytes.

While this could be fixed by making the kernel trim the last 4 bytes off the error message, this is undesirable because error messages are already too short for some purposes (particularly errors including full pathnames). All error handlers must be coded defensively in case they’re run on all the kernels that expect a 260-byte error buffer anyway, and so the fix is to update the documentation to warn authors of error handlers that they must allocate 260 bytes, not 256.

Changelog:

Modified by Trevor Johnson (329) Mon, January 24 2011 - 15:21:06 GMT

Cross-reference to ErrorV.

Modified by Sprow (202) Thu, January 31 2013 - 20:32:55 GMT

  • Part changed from RISC OS: General to RISC OS: Documentation

Modified by Sprow (202) Thu, April 10 2014 - 21:37:41 GMT

  • Status changed from Open to Fixed

Wiki page created for ‘Error Handler’ (note – not ErrorV) & noted in the PRM text.

  • Comment on, or change status of, this ticket

Previous|Next

Search tickets

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Options

  • Tickets
  • New ticket
  • Milestones
  • Subversion: Changesets
  • Subversion: Browse
  • CVS: Revisions
  • CVS: Browse
  • Search

RSS feeds Rss

  • Tickets
  • Everything!
  • More feeds...
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Collaboa theme is distantly based on the Collaboa default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Collaboa
This site runs on Rails

Hosted by Arachsys