If you give me the source for your fen parser, I will fix it for you.Movei can crash if you give it an illegal FEN or long games of more than 1000 moves.
After Dann Corbit's post that it is not acceptable I decided to ask Leo to remove it from his site.
I suggest also other programmers that their program suffers from the same problem to do the same and stop do their program freeware(I believe that most of the chess programs suffer from the same problem).
It is time that chess programmers stop supporting viruses and somebody needs to do the first step.
I may release a new version but it will not be in the near future because
I expect fixing the problem of illegal FEN to not be an easy task and in the near future I care more about improving the strength of the program.
Movei can crash if you give it an illegal FEN or long games of more than 1000 moves.
After Dann Corbit's post that it is not acceptable I decided to ask Leo to remove it from his site.
I suggest also other programmers that their program suffers from the same problem to do the same and stop do their program freeware(I believe that most of the chess programs suffer from the same problem).
It is time that chess programmers stop supporting viruses and somebody needs to do the first step.
I may release a new version but it will not be in the near future because
I expect fixing the problem of illegal FEN to not be an easy task and in the near future I care more about improving the strength of the program.
Uri
ThanksIf you give me the source for your fen parser, I will fix it for you.Movei can crash if you give it an illegal FEN or long games of more than 1000 moves.
After Dann Corbit's post that it is not acceptable I decided to ask Leo to remove it from his site.
I suggest also other programmers that their program suffers from the same problem to do the same and stop do their program freeware(I believe that most of the chess programs suffer from the same problem).
It is time that chess programmers stop supporting viruses and somebody needs to do the first step.
I may release a new version but it will not be in the near future because
I expect fixing the problem of illegal FEN to not be an easy task and in the near future I care more about improving the strength of the program.
Based on Dann corbit there is no problem with premature exit that is not a crash.Hi Uri,Movei can crash if you give it an illegal FEN or long games of more than 1000 moves.
After Dann Corbit's post that it is not acceptable I decided to ask Leo to remove it from his site.
I suggest also other programmers that their program suffers from the same problem to do the same and stop do their program freeware(I believe that most of the chess programs suffer from the same problem).
It is time that chess programmers stop supporting viruses and somebody needs to do the first step.
I may release a new version but it will not be in the near future because
I expect fixing the problem of illegal FEN to not be an easy task and in the near future I care more about improving the strength of the program.
Uri
this sounds like an overreaction to me. My BigLion has obvious nuisances,
for example:
1) log files cannot be switched off.
2) resign, but no resign offer.
3) Zero hash size is changed to 1 MB Hash.
4) wrong FEN can lead to crash.
5) 1000 moves causes premature exit.
6) fixed time per move not supported, or buggy.
7) fixed depth search not implemented.
8) ... etc.
However, if someone tells me to stop offering it for download,
I will use words against him which will force any moderator to step in quickly.
Ignore Dann and leave Movei on Leo's homepage, for the sake of thousands of
Movei fans worldwide.
/Matthias.
How can anybody profit from this bugs as a chess program does not listen to any ports?Movei can crash if you give it an illegal FEN or long games of more than 1000 moves.
After Dann Corbit's post that it is not acceptable I decided to ask Leo to remove it from his site.
I suggest also other programmers that their program suffers from the same problem to do the same and stop do their program freeware(I believe that most of the chess programs suffer from the same problem).
It is time that chess programmers stop supporting viruses and somebody needs to do the first step.
I may release a new version but it will not be in the near future because
I expect fixing the problem of illegal FEN to not be an easy task and in the near future I care more about improving the strength of the program.
Uri
basic definition in def.h:what are the dimentions of:
info[]
setmask[]
numfilwhitepawns[]
numfilblackpawns[]
I do not know but see http://f11.parsimony.net/forum16635/messages/67791.htmHow can anybody profit from this bugs as a chess program does not listen to any ports?Movei can crash if you give it an illegal FEN or long games of more than 1000 moves.
After Dann Corbit's post that it is not acceptable I decided to ask Leo to remove it from his site.
I suggest also other programmers that their program suffers from the same problem to do the same and stop do their program freeware(I believe that most of the chess programs suffer from the same problem).
It is time that chess programmers stop supporting viruses and somebody needs to do the first step.
I may release a new version but it will not be in the near future because
I expect fixing the problem of illegal FEN to not be an easy task and in the near future I care more about improving the strength of the program.
Uri
Greetings Mangar
Dann:what are the dimentions of:
info[]
setmask[]
numfilwhitepawns[]
numfilblackpawns[]
I think that the assumption should be negative.Dann:what are the dimentions of:
info[]
setmask[]
numfilwhitepawns[]
numfilblackpawns[]
Your offer to help Uri is generous but it looks like a formidable task where you need more than just array sizes. ie - what if the fen string contains a "K" in the castle rights section but no rook on h1. Is this something that Movei can handle without a problem, or could it cause a blowup? Only Uri knows all these nuts and bolts.
Dan H.
also 2 knight directions and 2 opposite direction in general should not be accepted(attacking the king from 2 bishop directions should not be accepted even if they are not opposite directions).I think that the assumption should be negative.Dann:what are the dimentions of:
info[]
setmask[]
numfilwhitepawns[]
numfilblackpawns[]
Your offer to help Uri is generous but it looks like a formidable task where you need more than just array sizes. ie - what if the fen string contains a "K" in the castle rights section but no rook on h1. Is this something that Movei can handle without a problem, or could it cause a blowup? Only Uri knows all these nuts and bolts.
Dan H.
The rule is to assume that things are going to be wrong in case of doubt.
I think that other can also know by trying movei and see if it crashes(I know that basically it can crash with wrong castling information and the question if it can crash in the specific case that you mention is not important).
the first task should be to have a function to check for the legality of the FEN including no contradiction between the castling rights and the position.
It can be a common program for all chess programs that need it.
It should also check that the king is not threated from 2 opposite rook directions and if it is not threated from more than 2 directions.
Uri
I can add that attacking the king by a knight and another piece at distance 1 also should not be accepted and it includes the case of attacking the king by a knight and a pawn.also 2 knight directions and 2 opposite direction in general should not be accepted(attacking the king from 2 bishop directions should not be accepted even if they are not opposite directions).I think that the assumption should be negative.Dann:what are the dimentions of:
info[]
setmask[]
numfilwhitepawns[]
numfilblackpawns[]
Your offer to help Uri is generous but it looks like a formidable task where you need more than just array sizes. ie - what if the fen string contains a "K" in the castle rights section but no rook on h1. Is this something that Movei can handle without a problem, or could it cause a blowup? Only Uri knows all these nuts and bolts.
Dan H.
The rule is to assume that things are going to be wrong in case of doubt.
I think that other can also know by trying movei and see if it crashes(I know that basically it can crash with wrong castling information and the question if it can crash in the specific case that you mention is not important).
the first task should be to have a function to check for the legality of the FEN including no contradiction between the castling rights and the position.
It can be a common program for all chess programs that need it.
It should also check that the king is not threated from 2 opposite rook directions and if it is not threated from more than 2 directions.
Uri
There are more illegal cases(attacking the king by 2 pawns or by a knight and a pawn should not be accepted and the question if movei can crash because of it is not important because even if it does not crash another program can crash).
Attacking the king by 2 pieces at distance 1 from it a;lso should not be accepted.
Uri
Uri, you should make a list, and post it here. The above, and the 3 directions are case, I don't check in Yace (it shouldn't hurt Yace either), but I think it could be worthwhile, to at least give a warning. I check (now ...) the other mentioned things. King not to move in check, exactly 2 Ks of opposite color, number of pieces per sideI can add that attacking the king by a knight and another piece at distance 1 also should not be accepted and it includes the case of attacking the king by a knight and a pawn.
There are lots of missing definitions. I fear Uri may have a real pain in the neck to do proper cleanup. Here is an initial crack at it:Dann:what are the dimentions of:
info[]
setmask[]
numfilwhitepawns[]
numfilblackpawns[]
Your offer to help Uri is generous but it looks like a formidable task where you need more than just array sizes. ie - what if the fen string contains a "K" in the castle rights section but no rook on h1. Is this something that Movei can handle without a problem, or could it cause a blowup? Only Uri knows all these nuts and bolts.
Dan H.
Indeed. It seems that a very insidious bug could easily be created. And the generation of such a bug will not be difficult. You simply create a rogue engine that sends an evil buffer designed for overrun as a response to some ordinary winboard response.It is not automatically a security problem, when a program can crash. We wouldn't have many free chess-engines (an perhaps even not commercial ones), when we demanded, that they never can crash.
Winboard has a buffer overlow problem (at least the version, I tried this with), and can crash. A similar problem had some Fritz interfaces. When sending too long PVs, the GUIs would crash, or do other stupid things. I remember that some Shredder engine crashed when a position had 10 knights. I saw the Fritz 7 GUI crashing *many* times. I could easily reproduce some crashes, by sending output of the engine to it (that was legal according to the UCI protocol - but it really doesn't matter).
I guess most not very simple programs on my HD can crash in one way or the other way. In some really security related applications, buffer overflows are found almost regularily - even after *many* years of developement.
I would be more concerned, that a crashing chess engine can destroy some data on the HD (also even this seems unlikely), than that there will be the danger of a virus infection. How should that happen? There must be somebody, who wants to infect you with the virus. How would he do it? Over Winboard when connected to some ICS?
There are lots of missing definitions. I fear Uri may have a real pain in the neck to do proper cleanup. Here is an initial crack at it:Dann:what are the dimentions of:
info[]
setmask[]
numfilwhitepawns[]
numfilblackpawns[]
Your offer to help Uri is generous but it looks like a formidable task where you need more than just array sizes. ie - what if the fen string contains a "K" in the castle rights section but no rook on h1. Is this something that Movei can handle without a problem, or could it cause a blowup? Only Uri knows all these nuts and bolts.
Dan H.
In my program there is no problem with the king being attacked from 3 or more directions. There is no problem if it gets a fen for the starting position except with the rooks in the middle of the board. There are all sorts of illegal and impossible positions that I don't worry about because the won't cause a crash. If a user wants to set up one of these positions, fine.I can add that attacking the king by a knight and another piece at distance 1 also should not be accepted and it includes the case of attacking the king by a knight and a pawn.also 2 knight directions and 2 opposite direction in general should not be accepted(attacking the king from 2 bishop directions should not be accepted even if they are not opposite directions).I think that the assumption should be negative.Dann:what are the dimentions of:
info[]
setmask[]
numfilwhitepawns[]
numfilblackpawns[]
Your offer to help Uri is generous but it looks like a formidable task where you need more than just array sizes. ie - what if the fen string contains a "K" in the castle rights section but no rook on h1. Is this something that Movei can handle without a problem, or could it cause a blowup? Only Uri knows all these nuts and bolts.
Dan H.
The rule is to assume that things are going to be wrong in case of doubt.
I think that other can also know by trying movei and see if it crashes(I know that basically it can crash with wrong castling information and the question if it can crash in the specific case that you mention is not important).
the first task should be to have a function to check for the legality of the FEN including no contradiction between the castling rights and the position.
It can be a common program for all chess programs that need it.
It should also check that the king is not threated from 2 opposite rook directions and if it is not threated from more than 2 directions.
Uri
There are more illegal cases(attacking the king by 2 pawns or by a knight and a pawn should not be accepted and the question if movei can crash because of it is not important because even if it does not crash another program can crash).
Attacking the king by 2 pieces at distance 1 from it a;lso should not be accepted.
Uri
Uri
Return to Archive (Old Parsimony Forum)
Users browsing this forum: No registered users and 36 guests