[OpenBIOS] [commit] r733 - trunk/openbios-devel/libopenbios

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Mon Apr 5 12:29:59 CEST 2010


Tarl Neustaedter wrote:

> My interpretation of the spec is that N-args and N-returns *define* the 
> number of arguments taken and returned. If the called method generates a 
> different number of returns than the caller asked for, the interface 
> must either generate or discard the additional values.

Hi Tarl,

Thanks for the clarification on this. This was the conclusion I reached 
but from a slightly different perspective: i.e. it is the CIF client 
that passes the parameter block into the CIF interface. Hence if the 
client specifies 1 return argument then it is likely that only enough 
memory has been allocated for 1 argument, and so anything else should 
just be ignored to prevent memory buffer overruns.


ATB,

Mark.

-- 
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs



More information about the OpenBIOS mailing list