Comment 2 for bug 734867

Revision history for this message
Andreas Metzler (k-launchpad-downhill-at-eu-org) wrote :

I think I have found the reason: panoFileMakeTemp() is invoked with incorrect arguments twice.
panoFileMakeTemp() uses functions like strrchr, strlen and sprintf on its input. These fail horribly when the input is not a proper string.

-------------------
TIFFOpen: -äÿ/_PTStitcher_tmp_000003: Cannot open.
-------------------

* panoTiffCrop() invokes the function on an uninitialized variable.
* panoCreatePanorama() uses an incorrect memcpy to setup input for panoFileMakeTemp()

Patch attached, please doublecheck. I think fixing this bug should be part of 2.9.18.