1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

stack smashing | スタック破壊

Last updated at Posted at 2015-04-22

引用: C/C++ セキュアコーディング 第2版 by Robert C. Seacordら

スタック破壊 (stack smashing)は、バッファーオーバーフローによって、実行スタックに割り当てられたメモリ上のデータが上書きされる場合に発生する。

メモリのうちのスタック領域におかしなデータが書かれる状況だろう。

どのように破壊されるかについては、上記の本において図説でよく説明されている。


http://inaz2.hatenablog.com/entry/2014/03/14/151011 > スタック上にあるcanaryと呼ばれる値は、実行するたびに値が変わる。 これは、stack-smashing protection (SSP) と呼ばれるセキュリティ機構によって追加されるデータである。 SSPは元となった実装の名前からStackGuardやProPoliceとも呼ばれることがある。

SSP / StackGuard / ProPolice は知らなかった。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?