erikajohns / puz

Automatically exported from code.google.com/p/puz
0 stars 0 forks source link

segfault in converting text file to binary file #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create test.txt, a text puz file
2. readpuz test.txt test.puz
3.

What is the expected output? 
A binary puz file, created from test.txt

What do you see instead?
A segfault

What version of the product are you using? 
libpuz-1.1.0

On what operating system?
linux

Please provide any additional information below.

I ran gdb and found that I was dying in cksum.c, in reading puz->notes.  I 
found that puz->notes is initialized in load.c/puz_load_bin, when a binary puz 
file is read in, but couldn't find where it was getting initialized when 
reading a text puz file.

I got my conversion to work by commenting out all mention of pux->notes in 
cksum.c.  This is obviously not a viable solution for general use.

Original issue reported on code.google.com by ali.cor...@gmail.com on 17 Jan 2011 at 1:43

Attachments:

GoogleCodeExporter commented 8 years ago
The segfault has been fixed.  Thanks for the report.  However, it appears that 
reading the text format never worked for several reasons.  I don't have time to 
fix this presently - the library should be used only for the binary format.

Original comment by Chris.Casinghino@gmail.com on 18 Dec 2013 at 3:49