Bounds check
guycalledfrank opened this issue · comments
Mr F commented
Just testing the library :)
Found it crashing with Y coordinate being 1024 for a 1024 map (shouldn't be > 1023). Maybe my fault, but also maybe there needs to be something like min(ax+1, w-1) and so on here:
https://github.com/ands/seamoptimizer/blob/master/seamoptimizer.h#L484
ands commented
Yeah, the border conditions need some clean up... :)