Project

General

Profile

Bug #6316

The `mdb -k' dcmd ::nce will segfault when run multiple times

Added by Robert Mustacchi about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
mdb - modular debugger
Start date:
2015-10-09
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

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.

History

#1

Updated by Electric Monk about 4 years ago

  • Status changed from New to Closed

git commit 69fc1db823fe31ff02556abfd7288e6134e7304c

commit  69fc1db823fe31ff02556abfd7288e6134e7304c
Author: Cody Peter Mello <cody.mello@joyent.com>
Date:   2015-10-13T00:02:34.000Z

    6316 The `mdb -k' dcmd ::nce will segfault when run multiple times
    Reviewed by: Toomas Soome <tsoome@me.com>
    Reviewed by: Dan McDonald <danmcd@omniti.com>
    Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
    Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
    Approved by: Matthew Ahrens <mahrens@delphix.com>

Also available in: Atom PDF