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
F145484346: D26037.id75711.diff
Fri, Feb 20, 10:23 AM
F145439449: D26037.id75806.diff
Thu, Feb 19, 10:17 PM
F145423232: D26037.id75712.diff
Thu, Feb 19, 4:21 PM
Unknown Object (File)
Tue, Feb 17, 5:19 PM
Unknown Object (File)
Thu, Jan 22, 10:26 PM
Unknown Object (File)
Jan 5 2026, 11:11 PM
Unknown Object (File)
Jan 5 2026, 2:00 AM
Unknown Object (File)
Jan 2 2026, 8:22 PM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

cem added inline comments.
lib/libbsnmp/tests/bsnmpd_test.c
9 ↗(On Diff #75711)

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

15 ↗(On Diff #75711)

2, or sizeof(test_buf)

lib/libbsnmp/tests/bsnmpd_test.c
15 ↗(On Diff #75711)

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.