lkml.org 
[lkml]   [1996]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Frozen linux 1.3.84
Linus Torvalds (torvalds@cs.helsinki.FI) wrote:


: On Mon, 8 Apr 1996, Darren Reed wrote:
: >
: > Consider the case when the packet has an option length of 0 for an
: > option which falls into the "default" case but the packet claims to
: > have (say) 8 bytes of IP options.

: Right. Does the lockup go away if you add a test for zero optlen in
: ip_options.c, line 277. Pseudo-patch:

: continue;
: }
: optlen = optptr[1];
: - if (l<2 || optlen>l)
: + if (l<2 || optlen>l || !optlen)
: {
: pp_ptr = optptr;

Seems, I meaned really:

: - if (l<2 || optlen>l)
: + if (optlen<2 || optlen>l)

Alexey Kuznetsov.


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.025 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site