commit | d22206766de5dedbff1d3014cb45a87d118105d3 | [log] [tgz] |
---|---|---|
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Wed Nov 13 19:41:41 2002 +0000 |
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Wed Nov 13 19:41:41 2002 +0000 |
tree | fabb280b0eeb29bdfb1a2c1104011defd83ff6aa | |
parent | 683c6ee44acbde4cc63b6d435da3768f0ee71dd4 [diff] |
Disallow logging sockets < 1024. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1290 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_mylibc.c b/coregrind/vg_mylibc.c index d828569..c8d2642 100644 --- a/coregrind/vg_mylibc.c +++ b/coregrind/vg_mylibc.c
@@ -1576,6 +1576,7 @@ if (j > 65535) goto syntaxerr; } if (any == 0 || c != 0) goto syntaxerr; + if (j < 1024) goto syntaxerr; *port = (UShort)j; ok: return 1;