Re: Administrivia: List Announcement
From: Edinelson Keiji Shimokawa (dev_at_pop.com.br)
Date: 05/14/03
- Previous message: Joel Eriksson: "Re: vulndev-1 exploit."
- In reply to: Benjamin A. Okopnik: "Re: Administrivia: List Announcement"
- Next in thread: Brian Hatch: "Re: Administrivia: List Announcement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: "Benjamin A. Okopnik" <ben@callahans.org> Date: Wed, 14 May 2003 10:21:28 -0300
Benjamin A. Okopnik disse:
> l1 = strlen(p1);
> s1 = sizeof(p1);
> l2 = strlen(p2);
> s2 = sizeof(p2);
I think that there we need to code:
> l1 = strlen(buf1);
> s1 = sizeof(buf1);
> l2 = strlen(buf2);
> s2 = sizeof(buf2);
but, I coded and the results:
# ./a.out `perl -e 'print "A" x 251;print " "; print "B" x 251'`
strlen1: 251 sizeof1: 4
strlen2: 251 sizeof2: 4
# ./a.out `perl -e 'print "A" x 252;print " "; print "B" x 251'`
strlen1: 254 sizeof1: 4
strlen2: 251 sizeof2: 4
# ./a.out `perl -e 'print "A" x 253;print " "; print "B" x 251'`
Segmentation fault
# ./a.out `perl -e 'print "A" x 252;print " "; print "B" x 252'`
strlen1: 254 sizeof1: 4
strlen2: 254 sizeof2: 4
# ./a.out `perl -e 'print "A" x 251;print " "; print "B" x 252'`
strlen1: 251 sizeof1: 4
strlen2: 254 sizeof2: 4
# ./a.out `perl -e 'print "A" x 252;print " "; print "B" x 253'`
strlen1: 254 sizeof1: 4
strlen2: 254 sizeof2: 4
# ./a.out `perl -e 'print "A" x 252;print " "; print "B" x 254'`
strlen1: 254 sizeof1: 4
strlen2: 254 sizeof2: 4
# ./a.out `perl -e 'print "A" x 252;print " "; print "B" x 255'`
strlen1: 254 sizeof1: 4
strlen2: 254 sizeof2: 4
mmm... it seems that buf2 overflowed 2 bytes. try other sizes for SIZE.
I have tried 248 and 250. it's amazing that doesn't sigfaults.
seems a very special condition.
Edinelson Keiji Shimokawa.
A jedi prentice owned by Dark Force.
-- POP. Nem parece internet grátis. Seja POP você também! Acesse: http://www.pop.com.br/pop_discador.php e baixe o POPdiscador.
- Previous message: Joel Eriksson: "Re: vulndev-1 exploit."
- In reply to: Benjamin A. Okopnik: "Re: Administrivia: List Announcement"
- Next in thread: Brian Hatch: "Re: Administrivia: List Announcement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]