BUG/MINOR: buffer: fix buffer_dump() formatting
authorWilliam Lallemand <wlallemand@haproxy.org>
Mon, 9 Aug 2021 17:37:16 +0000 (19:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Aug 2021 15:07:32 +0000 (17:07 +0200)
commit7ddad235aa415f8cb63faf4ea2cc2bd13fa27fff
tree4541f8a22fbf0c7771a19490bb9fb212b03ed370
parentfe7f615a27fc2995a492ecd77d81b1f34aa408f6
BUG/MINOR: buffer: fix buffer_dump() formatting

The formatting of the buffer_dump() output must be calculated using the
relative counter, not the absolute one, or everything will be broken if
the <from> variable is not a multiple of 16.

Could be backported in all maintained versions.

(cherry picked from commit 7e7765a4515bc23d536e2840c5bbdf18ffca6d45)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 4d593e01961e6c28ea7cdd068f74807c28fd39e2)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/dynbuf.c