Outils pour utilisateurs

Outils du site


tech:notes_langage_c

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
tech:notes_langage_c [2025/10/02 20:30] Jean-Baptistetech:notes_langage_c [2025/10/05 02:24] (Version actuelle) Jean-Baptiste
Ligne 88: Ligne 88:
  
  
 +
 +== Sécurité
 +
 +<code ->
 +$ man gets
 +
 +...
 +(DEPRECATED)
 +Never use this function.
 +
 +BUGS
 +       Never  use  gets().   Because  it is impossible to tell without knowing the data in advance how many characters gets() will read, and because gets() will continue to store characters past the end of the
 +       buffer, it is extremely dangerous to use.  It has been used to break computer security.  Use fgets() instead.
 +
 +       For more information, see CWE-242 (aka "Use of Inherently Dangerous Function") at http://cwe.mitre.org/data/definitions/242.html
 +...
 +</code>
tech/notes_langage_c.1759429836.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki