Opened 14 years ago

Closed 14 years ago

#253 closed defect (fixed)

NS wait_for_task references NULL pointer.

Reported by: Tomas Brambora Owned by:
Priority: major Milestone: 0.4.3
Component: helenos/srv/ns Version: mainline
Keywords: Cc: jakub@…
Blocker for: Depends on:
See also:

Description

If we don't find the task to wait for by its TID, we set

hashed_task_t *ht = NULL

and jump to "out" label, where we reference

ht->have_rval

And NS crashes.

Change History (4)

comment:1 by Jakub Jermář, 14 years ago

Hi Tomas,

is there a real-world scenario leading to this bug or did you find it by inspecting the code?

Thanks,
Jakub

comment:2 by Jakub Jermář, 14 years ago

Cc: jakub@… added

comment:3 by Jakub Jermář, 14 years ago

Martin Sucha discovered a test case:

# redir -o /test.txt -- cat /readme

comment:4 by Jakub Jermář, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.