OSSP CVS Repository

ossp - Check-in [4132]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4132
Date: 2001-Jun-29 15:55:47 (local)
2001-Jun-29 13:55:47 (UTC)
User:rse
Branch:
Comment: As we still discovered with Thomas yesterday, the xds_set_decode_buffer() really needs a "buf_size" argument. Because incoming (to be decoded) buffers are usually "input bufferes" which were received from external sources, so we cannot safely assume it really contains a correct encoding. Hence we have to provide a way in XDS to protect the library from segfaulting the application in case the buffer is destroyed and XDS still would like something to decode.
Tickets:
Inspections:
Files:
ossp-pkg/xds/xds.h      1.5 -> 1.6     2 inserted, 2 deleted

ossp-pkg/xds/xds.h 1.5 -> 1.6

--- xds.h        2001/06/28 16:09:16     1.5
+++ xds.h        2001/06/29 13:55:47     1.6
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/xds/Attic/xds.h,v $
-   $Revision: 1.5 $
+   $Revision: 1.6 $
 
    Copyright (c) 2001 by Cable & Wireless Deutschland.
 
@@ -41,7 +41,7 @@
 int xds_unregister(xds_t* context, const char* name);
 
 int xds_set_encode_buffer(xds_t* context, char* buf, size_t buf_size);
-int xds_set_decode_buffer(xds_t* context, const char* buf);
+int xds_set_decode_buffer(xds_t* context, const char* buf, size_t buf_size);
 int xds_get_encode_buffer(xds_t* context, char** buf, size_t* buf_size);
 
 int xds_encode(xds_t* context, const char* fmt, ...);

CVSTrac 2.0.1