From: David Flynn <[EMAIL PROTECTED]>

If a signed length is used to access a buffer, unfortunate sign
extension can occur.

TODO: Should the actually be uintptr_t?

Signed-off-by: David Flynn <[EMAIL PROTECTED]>
---
 schroedinger/schrobuffer.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/schroedinger/schrobuffer.h b/schroedinger/schrobuffer.h
index d4e76ca..f3df89c 100644
--- a/schroedinger/schrobuffer.h
+++ b/schroedinger/schrobuffer.h
@@ -12,7 +12,7 @@ struct _SchroBuffer
 {
   /*< private >*/
   unsigned char *data;
-  int length;
+  unsigned int length;
 
   int ref_count;
 
-- 
1.5.5




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Schrodinger-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/schrodinger-devel

Reply via email to