Ticket #72 (closed defect: fixed)

Opened 6 months ago

Last modified 6 months ago

"load $i" , if $i is not defined segfaults

Reported by: camoroz0 Owned by:
Priority: minor Milestone: v0.81
Component: ERESI Version:
Severity: Medium Keywords:
Cc:

Description

(elfsh-0.81-a12-dev@local) load $1

Segmentation fault

when trying to dereference tmp->otype in load.c.

--- load.c 2008-07-18 20:02:32.000000000 +0200 +++ patchload.c 2008-07-18 20:02:12.000000000 +0200 @@ -236,6 +236,12 @@

"Unknown file to load", (-1));

}

tmp = expr->value;

+ if (!tmp->otype) + { + revm_expr_destroy(expr->label); + PROFILER_ERR(FILE, FUNCTION, LINE, + "Null file. Impossible to load", (-1)); + }

if (tmp->otype->type != ASPECT_TYPE_STR)

{

revm_convert_object(expr, ASPECT_TYPE_STR);

Attachments

patchload.c (7.3 kB) - added by camoroz0 6 months ago.
patch
patch.txt (0.7 kB) - added by camoroz0 6 months ago.
patch.txt

Change History

Changed 6 months ago by camoroz0

patch

Changed 6 months ago by camoroz0

patch.txt

Changed 6 months ago by may

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.