h2r/ein

Setting angular aperture too wide in either dimension causes segfault

joberlin opened this issue · 0 comments

Bounds checking needs to be enforced in places like this:

int base_idx = py * wristViewYCbCr.cols*3 + px * 3;
cell->newObservation(input[base_idx + 2], input[base_idx + 1], input[base_idx + 0], z_focal_plane);
numPixels++;