14:44 < mxn> erm 14:44 < mxn> you got 2 bytes, then a 0byte 14:44 < mxn> so printf will stop there 14:44 < mxn> use write(2) 14:44 < mxn> atm it should just print \x05 14:44 < mxn> (on little endian) 14:46 < dusty> hrm 14:46 < dusty> i tried write and it only prints out 1 14:47 < mxn> try ./foobar| hexdump 14:47 < mxn> or maybe s/hexdump/hd/ 14:47 -!- Paul_ [~paul@enigma.id.au] has quit [Ping timeout: 240 seconds] 14:47 -!- shm [shm@83.17.132.210] has quit [Ping timeout: 240 seconds] 14:47 -!- rjohnson [~rjohnson@ns1.nologin.org] has quit [Ping timeout: 240 seconds] 14:47 < dusty> dusty@eloise:~/Code/InsecureProgramming/Stack3$ ./a.out | hexdump 14:47 < dusty> 0000000 0005 0102 14:47 < dusty> 0000004 14:47 -!- ethico [~ethico@204.186.62.9.res-pit.ptd.net] has quit [Ping timeout: 240 seconds] 14:47 -!- riotact [~blank@c211-28-181-74.eburwd7.vic.optusnet.com.au] has quit [Ping timeout: 240 seconds] 14:47 -!- Nevar [~Nevar@ppp114-103.static.internode.on.net] has quit [Ping timeout: 240 seconds] 14:47 -!- c0n [c0n@def-con.org] has quit [Ping timeout: 240 seconds] 14:47 -!- Phildo [~Phildo@203-59-66-76.dyn.iinet.net.au] has quit [Ping timeout: 240 seconds] 14:48 -!- riotact [blank@c211-28-181-74.eburwd7.vic.optusnet.com.au] has joined #social 14:48 < mxn> % ./test | hd 14:48 < mxn> 00000000 05 0a |..| 14:48 < mxn> is your version 14:48 < dusty> ? 14:48 -!- c0n [c0n@def-con.org] has joined #social 14:49 -!- rjohnson [rjohnson@ns1.nologin.org] has joined #social 14:49 < mxn> oh btw 14:49 -!- Phildo [Phildo@203-59-66-76.dyn.iinet.net.au] has joined #social 14:49 < mxn> buffer[128] = '\0'; 14:49 < mxn> thats an off by one 14:49 -!- Paul_ [~paul@enigma.id.au] has joined #social 14:49 < mxn> you initialize it with 128 bytes 14:49 < mxn> so there is only index 0-127 14:51 < mxn> http://pastebin.com/533701 - my version 14:51 < mxn> if you will the buffer with 0x01020005, you got lots of 0bygtes 14:51 < mxn> and printf stops when it reaches a 0byte 14:55 -!- shm [shm@83.17.132.210] has joined #social 14:58 <@Steven> netscreens don't follow the syslog protocol 14:58 <@Steven> heh 15:04 < dusty> mxn, Thankyou very much. 15:06 < mxn> no problem :) 15:08 < mxn> hahahahaa, integer 0verflow :D http://news.yahoo.com/s/afp/20060131/od_afp/uspeoplegatestax_060131213459 15:08 -!- h44rP [~h44rP@83-131-192-196.adsl.net.t-com.hr] has quit [Ping timeout: 240 seconds] 15:08 < bk> Hi @ all 15:08 < bk> scenestar: ping 15:08 < scenestar> boe 15:08 < scenestar> whatup? 15:09 < bk> had a conversation with Con Kolivas last night and asked about your questgion 15:09 < bk> re -ck3 15:09 < scenestar> ah yeah 15:09 < scenestar> it made my s server crash 15:09 < mxn> haha, even better, http://nibbler.geekheim.de/?p=15 15:09 < bk> I can PM you the text if you wish? 15:09 < scenestar> np 15:09 < scenestar> email would be prefered though 15:11 < bk> basically this: 15:11 < bk> 14:09 02:20 < con> I have heard of smoother framerates 15:11 < bk> 14:09 02:20 < con> but only testing will tell 15:11 < bk> 14:09 02:20 < bk> Right, ta 15:11 < bk> 14:09 02:20 < con> np 15:11 < bk> 14:09 02:21 < con> hard to predict as cedega has a lousy history with 2.6 kernels 15:11 < scenestar> hmmm 15:11 < scenestar> i expected that 15:11 < bk> The rest is in PM 15:12 < scenestar> i did notice improved performance in general 15:12 < scenestar> if you see him sometime give him some kudos on the good work 15:13 < bk> I see him regularly, so sure :) 15:14 < dmk> helo 15:14 -!- Nevar [Nevar@ppp114-103.static.internode.on.net] has joined #social