Fork us on GitHub Follow us on Facebook Follow us on Twitter

Opened 9 years ago

Closed 8 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 Changed 9 years ago by Jakub Jermář

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 Changed 9 years ago by Jakub Jermář

Cc: jakub@… added

comment:3 Changed 8 years ago by Jakub Jermář

Martin Sucha discovered a test case:

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

comment:4 Changed 8 years ago by Jakub Jermář

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