Bugzilla – Bug 141851
sane-frontends-1.0.14-2: array subscript out of range
Last modified: 2006-03-27 14:17:55 UTC
I just tried to compile package sane-frontends-1.0.14-2 with a non standard version of the GNU C compiler It said xcam.c:1290: warning: array subscript out of range The source code is testfilename[sizeof (testfilename)] = 0; Clearly broken code. Suggest testfilename[sizeof (testfilename) - 1] = 0;
*** Bug 134418 has been marked as a duplicate of this bug. ***
Fixed package submitted to STABLE.
FYI: Also fixed upstream: http://lists.alioth.debian.org/pipermail/sane-devel/2006-January/015946.html
(In reply to comment #3) > FYI: Also fixed upstream: Strange. It seems to be still broken a couple of months later in Suse Factory. I am not sure how this has happened.
Argl! You are right! I fixed it only in xscanimage.c according to bug #134418 because I simply missed that this bug is about xcam.c! Sorry! Will fix it also for xcam.c.
Fixed and submitted to STABLE.