Opened 15 years ago

Closed 13 years ago

#21741 closed defect (fixed)

sox crashes for MS-ADPCM wave

Reported by: null.atou@… Owned by: davidfavor (David Favor)
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: sox

Description

sox @14.2.0_1 audio converter crashes when convert a source .wav file of ms-adpcm(Microsoft ADPCM) encoding to linear pcm encoding on Snow Leopard(Mac Pro, kernel 32bit). example test by attach file as follows:

% sox msadpcm.wav -s msadpcm2signed.wav
zsh: segmentation fault  sox msadpcm.wav -s msadpcm2signed.wav

Also crashed when a destination format is aiff.

And, I found sox-14.3.0 binary from SoX homepage, that is not crashed. The difference between macport's and this is an architecture, the former is x86_64, the latter is i386.

Attachments (2)

msadpcm.wav (46.1 KB) - added by null.atou@… 15 years ago.
.wav file, MS-ADPCM encoding
patch-src-adpcm.c.diff (1.0 KB) - added by null.atou@… 14 years ago.
patch for src/adpcm.c

Download all attachments as: .zip

Change History (7)

Changed 15 years ago by null.atou@…

Attachment: msadpcm.wav added

.wav file, MS-ADPCM encoding

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to jm@…

Changed 14 years ago by null.atou@…

Attachment: patch-src-adpcm.c.diff added

patch for src/adpcm.c

comment:2 Changed 14 years ago by null.atou@…

I found that the source file 'src/adpcm.c' in the latest version 14.3.0, "/* N.B. Without int casts, crashes on 64-bit arch */". So I make a patch and everything was going well. BTW, is there any chance to update sox version to 14.3.0?

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from jm@… to macports-tickets@…

Jean-Michel no longer maintains these ports.

comment:4 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to david@…

comment:5 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

The test case works with version 14.3.1 on 10.6/x86_64.

Note: See TracTickets for help on using tickets.