]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: net_helper: fix incomplete decoding in sample_conv_eth_vlan
authorWilly Tarreau <w@1wt.eu>
Wed, 29 Apr 2026 07:36:03 +0000 (09:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 29 Apr 2026 13:11:44 +0000 (15:11 +0200)
commit80ca27be4274ffa2bebd39871747b4a73c393980
tree6206cfa729bed315150ed1534c929812dcdbe83e
parentafa32223b1bc61e265f1017222c9b5614b38af15
BUG/MINOR: net_helper: fix incomplete decoding in sample_conv_eth_vlan

sample_conv_eth_vlan() reads the VLAN TCI at area[idx + 2] without
ensuring there are enough bytes. The original condition 'idx + 4 < data'
breaks when there IS room for more data, leading to an incomplete read
when trying to decode a VLAN ID.

This can be backported where this converter was backported.
src/net_helper.c