Page MenuHomeFreeBSD

Fix a use-after-free in systat
Needs ReviewPublic

Authored by trix_juniper.net on Mar 12 2017, 3:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 20 2024, 11:46 PM
Unknown Object (File)
Oct 19 2024, 9:12 PM
Unknown Object (File)
Oct 19 2024, 4:16 PM
Unknown Object (File)
Oct 11 2024, 10:06 PM
Unknown Object (File)
Sep 21 2024, 6:20 AM
Unknown Object (File)
Sep 17 2024, 4:42 PM
Unknown Object (File)
Sep 6 2024, 1:28 AM
Unknown Object (File)
Sep 4 2024, 9:58 PM
Subscribers

Details

Reviewers
gibbs
Summary

devs.c dsmatchselect
tstr holds pointers that reference the memory held by tmpstr.
Free tmpstr when tstr is no longer used.

Test Plan

Use clang's static analyzer, scan-build, to find the problem and later to show resolution.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped