findNearest may be used incorrectly when a next address is requested

Description

When there is no valid next address, Loader::SymbolTable::findNearest returns 0. This is not being taken into account by the places that use this function, so they should be revisited.

Currently, only src/cpu/base.cc uses findNearest with a next address.

Environment

None

Assignee

Unassigned

Reporter

Daniel

Priority

Low

Components