mIRC Home    About    Download    Register    News    Help

Print Thread
/fseek -r GPF bug #67363
10/01/04 11:02 PM
10/01/04 11:02 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline OP
Hoopy frood
qwerty  Offline OP
Hoopy frood
Q

Joined: Jan 2003
Posts: 2,523
When a file contains lines bigger than 999 characters and /fseek -r <name> <pattern> is used, mirc crashes. Here's a command to reproduce the bug:

//.remove test.test | bset -t &a 1 $str(a,500) | bcopy &a $calc($bvar(&a,0) + 1) &a 1 -1 | bwrite test.test -1 -1 &a | fopen a test.test | fseek -r a /b/ | fclose a

The green part writes a 1000-character line to the file. The red part is the cause of the crash. Changing "500" to a smaller number doesn't crash mirc.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: /fseek -r GPF bug #67364
10/01/04 11:13 PM
10/01/04 11:13 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Online  Offline
Hoopy frood
O

Joined: Dec 2002
Posts: 1,922
Yep, a bug indeed.