Don't allow the kernel team to be passed to
elf_debug_lookup_user_symbol_address(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26747 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a9d458d8db
commit
70ce6a9ade
@ -1310,13 +1310,16 @@ symbol_found:
|
||||
|
||||
|
||||
/*! Tries to find a matching user symbol for the given address.
|
||||
Note that the given team's address must already be in effect.
|
||||
Note that the given team's address space must already be in effect.
|
||||
*/
|
||||
status_t
|
||||
elf_debug_lookup_user_symbol_address(struct team* team, addr_t address,
|
||||
addr_t *_baseAddress, const char **_symbolName, const char **_imageName,
|
||||
bool *_exactMatch)
|
||||
{
|
||||
if (team == NULL || team == team_get_kernel_team())
|
||||
return B_BAD_VALUE;
|
||||
|
||||
UserSymbolLookup& lookup = UserSymbolLookup::Default();
|
||||
status_t error = lookup.Init(team);
|
||||
if (error != B_OK)
|
||||
|
Loading…
Reference in New Issue
Block a user