Page MenuHomeFreeBSD

Fix a use-after-free in systat
Needs ReviewPublic

Authored by trix_juniper.net on Mar 12 2017, 3:56 PM.

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
Unit Tests Skipped