diff options
author | tonnerre <tonnerre> | 2008-05-13 22:30:47 +0000 |
---|---|---|
committer | tonnerre <tonnerre> | 2008-05-13 22:30:47 +0000 |
commit | 0f3b7007530dab7895ad92c8c477943a56871764 (patch) | |
tree | 9243374d9dcec1524770c127f0f3ffea81dcb9fe /net/quagga/patches/patch-ac | |
parent | 7cac4b3cc9bb96435662e672191690af02c85764 (diff) | |
download | pkgsrc-0f3b7007530dab7895ad92c8c477943a56871764.tar.gz |
Add patch for CVE-2007-1995 for stable quagga (NLRI attributes denial of
service).
Diffstat (limited to 'net/quagga/patches/patch-ac')
-rw-r--r-- | net/quagga/patches/patch-ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/quagga/patches/patch-ac b/net/quagga/patches/patch-ac new file mode 100644 index 00000000000..10dfa797722 --- /dev/null +++ b/net/quagga/patches/patch-ac @@ -0,0 +1,15 @@ +$NetBSD: patch-ac,v 1.3 2008/05/13 22:30:47 tonnerre Exp $ + +--- lib/stream.h ++++ lib/stream.h +@@ -59,7 +59,9 @@ struct stream_fifo + #define STREAM_SIZE(S) ((S)->size) + #define STREAM_REMAIN(S) ((S)->size - (S)->putp) + #define STREAM_DATA(S) ((S)->data) +- ++/* number of bytes still to be read */ ++#define STREAM_READABLE(S) ((S)->endp - (S)->getp) ++ + /* Stream prototypes. */ + struct stream *stream_new (size_t); + void stream_free (struct stream *); |