bitcoin/bitcoin — Issue #901: Not-safe function strcpy, possible buffer overflow
Author: mad
Created: 2012-02-26 11:24:30+00:00
State: open

There [1][2] we use strcpy, first arg may contain `MAX_PATH+100` (355) chars, but second arg may contain 32,767 chars [3]

[1] https://github.com/bitcoin/bitcoin/blob/master/src/util.cpp#L820
[2] https://github.com/bitcoin/bitcoin/blob/master/src/util.cpp#L825
[3] http://msdn.microsoft.com/en-us/library/windows/desktop/ms682653(v=vs.85).aspx