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

Event Timeline

ed accepted this revision.Mar 12 2017, 6:45 PM
This revision is now accepted and ready to land.Mar 12 2017, 6:45 PM
ed removed a reviewer: ed.Nov 21 2017, 9:43 PM
This revision now requires review to proceed.Nov 21 2017, 9:43 PM