Skip to content

Commit d22dffa

Browse files
yuwatabluca
authored andcommitted
test: add test for trailing invalid byte at the end
(cherry picked from commit 894f441) (cherry picked from commit c8c43dc) (cherry picked from commit 6ec5484)
1 parent 28b23a0 commit d22dffa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libsystemd-network/test-dhcp6-client.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,8 @@ TEST(client_parse_message_issue_24002) {
471471
0x20, 0x03, 0x00, 0xff, 0xaa, 0xbb, 0xcc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* prefix */
472472
/* Rapid commit */
473473
0x00, 0x0e, 0x00, 0x00,
474+
/* Trailing invalid byte at the end. See issue #28183. */
475+
00,
474476
};
475477
static const uint8_t duid[] = {
476478
0x00, 0x00, 0xab, 0x11, 0x5c, 0x6b, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff,

0 commit comments

Comments
 (0)