0
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.

secureCoding > C11附属書K > memcpy_s() > 実行時制約違反が発生すると...コピー先の配列はゼロ充填される

Last updated at Posted at 2015-04-29

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

2.5.4 memcpy()とmemmove()
...
実行時制約違反が発生すると、問題の発生に気づくのを促すために、コピー先の配列はゼロ充填される。

「ゼロ充填」の意味が「コピーした領域も含めてゼロ充填される」ということだろうか?

0
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
0
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?