Page MenuHomeFreeBSD

[PowerPC] [BookE] Fix read past end of struct
ClosedPublic

Authored by bdragon on Oct 12 2019, 1:13 AM.
Referenced Files
Unknown Object (File)
Mar 17 2024, 5:28 AM
Unknown Object (File)
Jan 21 2024, 12:17 AM
Unknown Object (File)
Dec 20 2023, 4:31 AM
Unknown Object (File)
Dec 20 2023, 2:22 AM
Unknown Object (File)
Nov 30 2023, 7:58 AM
Unknown Object (File)
Nov 3 2023, 7:41 AM
Unknown Object (File)
Oct 1 2023, 12:03 AM
Unknown Object (File)
Sep 6 2023, 7:32 PM
Subscribers

Details

Summary

This was causing panics for me when using GCC 6.4.

Replace overly clever code that was reading past the end of a struct with a basic double loop.

Diff Detail

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

Event Timeline

bdragon retitled this revision from [PowerPC] Fix read past end of struct to [PowerPC] [BookE] Fix read past end of struct.Oct 12 2019, 1:14 AM

Looks good for what we can do for now. I really should clean up the whole DPAA interface bits, so we don't need to do that loop. But since it's only executed on bootup, it's not a very high priority task.

This revision is now accepted and ready to land.Oct 12 2019, 8:29 PM
This revision was automatically updated to reflect the committed changes.