Project

General

Profile

Actions

Bug #5688

closed

ELF tools need to be more careful with dwarf data

Added by Rich Lowe over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
tools - gate/build tools
Start date:
2015-03-06
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

elfdump (and to a lesser extent libld) are overly trusting of DWARF data in their inputs.

- When decoding data, we should bounds check against the containing section, not just keep going
- We should print something (in elfdump) if an invalid encoding is encountered
- We should bounds check CIE/FDEs in general
- Check that the input sections we're processing aren't corrupt (sh_size but no actual data, etc.)

Actions #1

Updated by Electric Monk about 7 years ago

  • Status changed from New to Closed
  • % Done changed from 80 to 100

git commit 37915d862fc5cc87b5b702954d7d7f16a9f98e5c

commit  37915d862fc5cc87b5b702954d7d7f16a9f98e5c
Author: Richard Lowe <richlowe@richlowe.net>
Date:   2015-04-07T22:04:50.000Z

    5688 ELF tools need to be more careful with dwarf data
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: Dan McDonald <danmcd@omniti.com>
    Approved by: Gordon Ross <gwr@nexenta.com>

Actions

Also available in: Atom PDF