]> git.proxmox.com Git - mirror_frr.git/commit
lib: improve sanity checks in stream_set_endp()
authorAvneesh Sachdev <avneesh@opensourcerouting.org>
Sun, 6 May 2012 00:42:43 +0000 (17:42 -0700)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 25 Oct 2012 17:15:58 +0000 (10:15 -0700)
commit4effc29fb1c33a87a8d386de39c20d36a6956645
tree73e57392e4227aeae3ca3ef1db54e227f46909e6
parentb4154c145a2d1d0679983130413b81d44fbb04ab
lib: improve sanity checks in stream_set_endp()

  * lib/stream.c: (stream_set_endp) Add checks to make sure that the
    supplied 'endp' is within the 'size' of the stream, and that the
    current read pointer 'getp' is not beyond the specified 'endp'.
lib/stream.c