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
F105789594: D26037.id75713.diff
Fri, Dec 20, 5:42 PM
F105773362: D26037.diff
Fri, Dec 20, 12:20 PM
Unknown Object (File)
Tue, Dec 10, 9:36 AM
Unknown Object (File)
Thu, Dec 5, 12:42 AM
Unknown Object (File)
Nov 4 2024, 7:33 AM
Unknown Object (File)
Nov 4 2024, 7:32 AM
Unknown Object (File)
Nov 4 2024, 7:15 AM
Unknown Object (File)
Oct 9 2024, 6:04 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 32934
Build 30332: arc lint + arc unit

Event Timeline

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

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

15

2, or sizeof(test_buf)

lib/libbsnmp/tests/bsnmpd_test.c
15

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.