glassechidna / zxing-cpp

ZXing C++ Library
Apache License 2.0
610 stars 435 forks source link

fix GenericMultipleBarcodeReader Segmentation fault #16

Closed dushibaiyu closed 9 years ago

dushibaiyu commented 9 years ago

in GenericMultipleBarcodeReader::translateResultPoints funtion: ArrayRef< Ref > newResultPoints isn't initialization. SO ArrayRef<> ::array_ == 0; in newResultPoints->values().push_back(Ref(new ResultPoint(oldPoint->getX() + xOffset, oldPoint->getY() + yOffset))); will Segmentation fault. So must init befrom used