|
|
|
|
|
by zlynx
1865 days ago
|
|
I like to nitpick and point out gets() can be used safely, as a stunt. Memory map a read/write page and after that memory map a no-permissions guard page. Now you can safely use gets() to read a page size string without allowing a buffer overflow. |
|
I think the only safe way to use gets() is with trusted input.