projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4553ed
)
[XFRM]: Prevent off-by-one access to xfrm_dispatch
author
Thomas Graf
<tgraf@suug.ch>
Tue, 3 May 2005 21:26:01 +0000
(14:26 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 3 May 2005 21:26:01 +0000
(14:26 -0700)
Makes the type > XFRM_MSG_MAX check behave correctly to
protect access to xfrm_dispatch.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/xfrm.h
patch
|
blob
|
history
diff --git
a/include/linux/xfrm.h
b/include/linux/xfrm.h
index f0df02ae68a4138152b5f278f9a1afaaf973554a..4d19b9e65317cb622ca5f56058c1fa3ae0c72b98 100644
(file)
--- a/
include/linux/xfrm.h
+++ b/
include/linux/xfrm.h
@@
-140,8
+140,9
@@
enum {
XFRM_MSG_FLUSHPOLICY,
#define XFRM_MSG_FLUSHPOLICY XFRM_MSG_FLUSHPOLICY
- XFRM_MSG_MAX
+
__
XFRM_MSG_MAX
};
+#define XFRM_MSG_MAX (__XFRM_MSG_MAX - 1)
struct xfrm_user_tmpl {
struct xfrm_id id;