guaranteed crash on completion of puzzle
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xjig (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: xjig
There is a buffer overrun leading to memory corruption crashing xjig on completion of the puzzle. Attached is a patch. I tried reporting this to 'upstream' but I have reason to believe the original developer might no longer be alive. That's what happens to truly venerable programs, I guess: they live to survive their authors.
I would much appreciate it if we can at least fix it for debian/ubuntu users. Here is the mail I (tried to) sent to Helmuth verbatim:
-------
Subject xjig 2.4
Sender <email address hidden>
Recipient <email address hidden>
Date 19.03.2011 20:59
Hi Helmuth,
nice work! I just compiled your project to get the kids some mouse exercise (3yrs and 5yrs). Big fun.
I want to report the following patch against xjig.C (2.4 tarball from ftp://ftp.
diff --git a/xjig.C b/xjig.C
index b02c116..8f8cecd 100644
--- a/xjig.C
+++ b/xjig.C
@@ -682,7 +682,7 @@ Pixmap pixmap;
- char buffer[20];
+ char buffer[50];
No rocket science to find it, but hey - but it gave a guaranteed buffer overflow every successful completion :)
I think that means that no-one ever solved a puzzle from xjig since 1996 ? Or perhaps, this bug was the puzzle.
Anyhow, thanks for a great sample program and kid toy,
Seth Heeren
Changed in xjig (Ubuntu): | |
status: | New → Confirmed |
Hi Seth,
The code you quote there is not in any of the versions I have.
Also, I have completed hundreds of xjig puzzles over the last few years,
and never a crash.
I now use version 2.5 ( http:// sourceforge. net/projects/ xjig/ ). It has
more options, and a frontend manager.
Regards
Les Hardy