Ist das ein "nicht so machen" Beispiel aus einem alten C-Kurs ;-)
HH > -----Urspr�ngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Auftrag von Bernhard Spuida > Gesendet: Freitag, 28. M�rz 2003 11:01 > An: [EMAIL PROTECTED] > Betreff: Re: AW: [Coffeehouse] OT: Code quiz > > > Bingo! > > > > > Wieso ist dieser Passwort-check (in C) wirklich idiotisch? > > > > > > gets(userEntry); > > > if (memcmp(userEntry, correctPassword, > > > strlen(userEntry)) != 0) > > > return (BAD_PASSWORD); > > > > Gibst ein leeres Passwort ein und bist drin? (Vergleich stimmt) > > > > Gru�, > > Markus > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~sponsored by United > Planet~~~~~~~~~~~~~~~~~ > > Kaffeepause im United Planet Communityserver ... > > http://www.intrexx.com/communityserver > > _______________________________________________ Coffeehouse mailing > > list [EMAIL PROTECTED] > > http://www.glengamoi.com/mailman/listinfo/coffeehouse > > > > A bureaucracy is like a computer program. Usually, the question is > how to arrange it so that what you want is composed of operations > that the > bureaucracy supports. In addition, in any bureaucracy, there is > always > *someone* whose job is to approve violations of the rules. > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~sponsored by United Planet~~~~~~~~~~~~~~~~~ > Kaffeepause im United Planet Communityserver ... > http://www.intrexx.com/communityserver > _______________________________________________ > Coffeehouse mailing list > [EMAIL PROTECTED] > http://www.glengamoi.com/mailman/listinfo/coffeehouse > ~~~~~~~~~~~~~~~~~~~~~~~~~~~sponsored by United Planet~~~~~~~~~~~~~~~~~ Kaffeepause im United Planet Communityserver ... http://www.intrexx.com/communityserver _______________________________________________ Coffeehouse mailing list [EMAIL PROTECTED] http://www.glengamoi.com/mailman/listinfo/coffeehouse
