kostub / iosMath

Beautiful math equation rendering on iOS and MacOS
MIT License
1.37k stars 234 forks source link

I find that 341st rows in the MTMathAtomFactory class have an array overrun problem. #110

Open Hockly opened 6 years ago

Hockly commented 6 years ago

for (int i = 0; i < table.cells.count; i++) { NSArray<MTMathList> row = table.cells[i]; if (row.count >= 1) { //error [row[1] insertAtom:spacer atIndex:0]; } } When there is only one element in row, an array error is reported.

cupojoe commented 5 years ago

@Hockly If you can reproduce it, it would be good to add a test for it and PR a bug fix.