Page MenuHomeFreeBSD

Add test to verify fix for FreeBSD-SA-19:20.bsnmp
ClosedPublic

Authored by darrick.freebsd_gmail.com on Aug 12 2020, 12:18 AM.
Tags
None
Referenced Files
F82023296: D26037.id75711.diff
Wed, Apr 24, 5:00 PM
F82021182: D26037.id.diff
Wed, Apr 24, 4:14 PM
Unknown Object (File)
Tue, Apr 23, 8:06 PM
Unknown Object (File)
Tue, Apr 23, 2:46 PM
Unknown Object (File)
Sat, Mar 30, 8:00 PM
Unknown Object (File)
Sat, Mar 30, 4:40 AM
Unknown Object (File)
Mar 7 2024, 1:56 AM
Unknown Object (File)
Mar 7 2024, 1:56 AM
Subscribers

Details

Summary

Verify passing in improper length in asn_buf to asn_get_header() returns ASN_ERR_EOBUF.

Test Plan

Verified test passing with fix for FreeBSD-SA-19:20.bsnmp and failing without.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 32936
Build 30334: arc lint + arc unit

Event Timeline

cem added inline comments.
lib/libbsnmp/tests/bsnmpd_test.c
10

The explicit length can be dropped to size it correctly automatically, char test_buf[] = { ... };

16

2, or sizeof(test_buf)

lib/libbsnmp/tests/bsnmpd_test.c
16

this one was missed?

This revision is now accepted and ready to land.Aug 12 2020, 8:44 PM
This revision was automatically updated to reflect the committed changes.