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 over 5 years ago
- Status changed from New to Closed
commit 69fc1db823fe31ff02556abfd7288e6134e7304c Author: Cody Peter Mello <firstname.lastname@example.org> Date: 2015-10-13T00:02:34.000Z 6316 The `mdb -k' dcmd ::nce will segfault when run multiple times Reviewed by: Toomas Soome <email@example.com> Reviewed by: Dan McDonald <firstname.lastname@example.org> Reviewed by: Igor Kozhukhov <email@example.com> Reviewed by: Josef 'Jeff' Sipek <firstname.lastname@example.org> Approved by: Matthew Ahrens <email@example.com>