]> git.proxmox.com Git - mirror_frr.git/commit - lib/stream.c
lib: add stream_rewind_getp()
authorQuentin Young <qlyoung@nvidia.com>
Wed, 2 Sep 2020 20:43:29 +0000 (16:43 -0400)
committerQuentin Young <qlyoung@nvidia.com>
Thu, 3 Sep 2020 18:23:54 +0000 (14:23 -0400)
commit06cf2c0c36e044dcdc4cdd5f7d6e971bc07a294c
tree745d1fe8f9b565bfc8af41319cefdffa4f008054
parente6464fdc184e4b0a4032286c8fae245dcdb03d8f
lib: add stream_rewind_getp()

stream_forward_getp() cannot be used with negative numbers due to the
size_t argument, we'll end up doing overflow arithmetic.

Signed-off-by: Quentin Young <qlyoung@nvidia.com>
lib/stream.c
lib/stream.h