The `mdb -k' dcmd ::nce will segfault when run multiple times
The problem is that in the nce dcmd opt_ill is not initialized and mdb_getopts does not change the value of opt_ill. This means that if it's stack garbage, we'll end up hitting driving on and dereferencing what could be potentially garbage, if we're lucky.
Updated by Electric Monk about 4 years ago
- Status changed from New to Closed
commit 69fc1db823fe31ff02556abfd7288e6134e7304c Author: Cody Peter Mello <email@example.com> Date: 2015-10-13T00:02:34.000Z 6316 The `mdb -k' dcmd ::nce will segfault when run multiple times Reviewed by: Toomas Soome <firstname.lastname@example.org> Reviewed by: Dan McDonald <email@example.com> Reviewed by: Igor Kozhukhov <firstname.lastname@example.org> Reviewed by: Josef 'Jeff' Sipek <email@example.com> Approved by: Matthew Ahrens <firstname.lastname@example.org>