Ticket #174 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

nxconvert segfaults when outputing to xml

Reported by: Stuart Campbell Owned by: Unassigned
Priority: major Milestone: NeXus 4.2 Release
Component: applications Version: 4.2rc4
Keywords: Cc:

Description

If you try and run something like...

nxconvert -d infile.nxs output.xml

You will get a segfault if you have any single character (NX_CHAR) strings in the file.

Change History

comment:1 Changed 3 years ago by Stuart Campbell

(In [1225]) Quick fix for problem. refs #174

comment:2 Changed 3 years ago by Freddie Akeroyd

(In [1226]) Fix possible NXdataset issue by adding 1 to allocated size to cover string NULL termination. Refs #174.

comment:3 Changed 3 years ago by Stuart Campbell

Still get a segfault

comment:4 Changed 3 years ago by Freddie Akeroyd

(In [1232]) Fix bug in NXXgetinfo for NX_CHAR. Refs #174.

comment:5 Changed 3 years ago by Freddie Akeroyd

(In [1234]) Merge back changes from 4.2 branch (add space for NULL termination) Probably not needed now (issue #174 was properly fixed in r1232), but no harm done. Refs #174.

comment:6 Changed 3 years ago by Freddie Akeroyd

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.