Ticket #72 (closed defect: fixed)
"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
Change History
Note: See
TracTickets for help on using
tickets.
