mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-02 15:49:39 -04:00
BUG/MINOR: buffer: fix debugging condition in b_peek_varint()
The BUG_ON_HOT() test condition added to b_peek_varint() by commit
8873b85bd ("DEBUG: buf: add BUG_ON_HOT() to most buffer management
functions") was wrong as <data> in this function is not b->data,
so that was triggering during live dumps of H2 traces on the CLI
when built with -DDEBUG_STRICT=2. No backport is needed.
This commit is contained in:
parent
76e8b70e43
commit
f1cb4ac745
1 changed files with 1 additions and 1 deletions
|
|
@ -913,7 +913,7 @@ static inline int b_peek_varint(struct buffer *b, size_t ofs, uint64_t *vptr)
|
|||
uint64_t v = 0;
|
||||
int bits = 0;
|
||||
|
||||
BUG_ON_HOT(ofs > data);
|
||||
BUG_ON_HOT(ofs > b_data(b));
|
||||
|
||||
if (data != 0 && (*head >= 0xF0)) {
|
||||
v = *head;
|
||||
|
|
|
|||
Loading…
Reference in a new issue