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
Unknown Object (File)
Sun, Sep 13, 3:35 AM
Unknown Object (File)
Sep 2 2026, 9:18 AM
Unknown Object (File)
Aug 29 2026, 4:13 AM
Unknown Object (File)
Aug 26 2026, 6:04 PM
Unknown Object (File)
Aug 19 2026, 8:34 PM
Unknown Object (File)
Aug 10 2026, 2:05 AM
Unknown Object (File)
Aug 8 2026, 7:51 PM
Unknown Object (File)
Aug 8 2026, 2:38 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.