Visualizzazione dei risultati da 1 a 2 su 2

Discussione: [C] Funzione gets()

  1. #1
    Utente di HTML.it
    Registrato dal
    Feb 2008
    Messaggi
    44

    [C] Funzione gets()

    Ciao a tutti!! Leggendo il man della funzione gets() ho letto questo:

    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.

    Qualcuno potrebbe darmi maggiori spiegazioni? In quali casi può non essere affidabile?

    Grazie

  2. #2

    Re: [C] Funzione gets()

    Originariamente inviato da kill9
    Ciao a tutti!! Leggendo il man della funzione gets() ho letto questo:

    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.

    Qualcuno potrebbe darmi maggiori spiegazioni? In quali casi può non essere affidabile?

    Grazie
    http://it.wikipedia.org/wiki/Buffer_overflow

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.