xs_write in mock_xenstore needs to strdup path
Bug #623840 reported by
Chris Behrens
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
agent-smith |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
xs_write()'s path argument can be something on the stack from a caller which disappears before it is picked up when later processing.
This is the line in question:
n->path = path;
'n' gets added to the pending_
Related branches
Changed in agent-smith: | |
status: | New → Fix Committed |
To post a comment you must log in.
Also, same thing happens in xs_write() when storing ->token (and probably ->path)