Fix a bug in buf_move_all() when the input buffer is empty.
commitc4742b89b23d58958ee0d5ca324dac5948c94bf6
authorNick Mathewson <nickm@torproject.org>
Thu, 30 Jul 2020 18:24:25 +0000 (30 14:24 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 30 Jul 2020 18:24:25 +0000 (30 14:24 -0400)
treef403e603d110b8a2f986051d45f240c17eb43e8a
parent0a588821cb5540e901a3d5b07ac73a20905a2c64
Fix a bug in buf_move_all() when the input buffer is empty.

We found this in #40076, after we started using buf_move_all() in
more places.  Fixes bug #40076; bugfix on 0.3.3.1-alpha.  As far as
I know, the crash only affects master, but I think this warrants a
backport, "just in case".
changes/bug40076 [new file with mode: 0644]
src/lib/container/buffers.c
src/test/test_buffers.c