New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21741 (closed defect: fixed)

Opened 2 years ago

Last modified 14 months ago

sox crashes for MS-ADPCM wave

Reported by: null.atou@… Owned by: david@…
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

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

Change History

Changed 2 years ago by null.atou@…

.wav file, MS-ADPCM encoding

Changed 2 years ago by macsforever2000@…

  • owner changed from macports-tickets@… to jm@…

Changed 2 years ago by null.atou@…

patch for src/adpcm.c

Changed 2 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?

Changed 2 years ago by ryandesign@…

  • owner changed from jm@… to macports-tickets@…

Jean-Michel no longer maintains these ports.

Changed 18 months ago by jmr@…

  • owner changed from macports-tickets@… to david@…

Changed 14 months ago by jmr@…

  • status changed from new to closed
  • resolution set to fixed

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

Note: See TracTickets for help on using tickets.