Skip to content

Commit

Permalink
Strictly limits TLCS47 size to prevent illegal accesses in solving. #72
Browse files Browse the repository at this point in the history
  • Loading branch information
travisgoodspeed committed Dec 3, 2023
1 parent 96a1d55 commit c98e280
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gatodecodertlcsfont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ QByteArray GatoDecoderTLCSFont::decode(GatoROM *gr){
if(gr->outputcols%8!=0) return ba;
if(gr->outputrows%8!=0) return ba;

//qDebug()<<"Output size is"<<gr->outputrows<<"x"<<gr->outputcols;
//qDebug()<<"Angle is"<<gr->angle;
//Strictly check the size. FIXME: Make this more generic.
if(gr->outputrows!=48 || gr->outputcols!=64)
return ba;

//Top to bottom
uint32_t adr=0;
Expand Down

0 comments on commit c98e280

Please sign in to comment.