neon/neon.uri_lookup.patch

23 lines
645 B
Diff

CVE-2007-0157
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=404723
do not cast char pointers to int pointers
---
src/ne_uri.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: neon-0.26.1/src/ne_uri.c
===================================================================
--- neon-0.26.1.orig/src/ne_uri.c
+++ neon-0.26.1/src/ne_uri.c
@@ -110,7 +110,7 @@ static const unsigned int uri_chars[256]
/* Fx */ OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT, OT
};
-#define uri_lookup(ch) (uri_chars[(unsigned)ch])
+#define uri_lookup(ch) (uri_chars[(unsigned char)ch])
char *ne_path_parent(const char *uri)
{