Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero length Buffer.write error #3121

Open
capocasa opened this issue Aug 10, 2017 · 0 comments
Open

Zero length Buffer.write error #3121

capocasa opened this issue Aug 10, 2017 · 0 comments

Comments

@capocasa
Copy link
Member

Reproduction:

(fork {
  s.bootSync;
  b=Buffer.alloc(s,0);
  s.sync;
  b.write("/tmp/a.wav");
})

Expected behavior:

Optionally,
(1) An error message id displayed that zero length buffers may not be saved

(2) Perhaps preferably, writing of a zero length sound file with the correct header.

Actual behavior:

An error message is displayed
File '/tmp/a.wav' could not be opened: Format not recognised.
and a zero-length file (with no header) is written, that causes further confusing error messages when attempting to read it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants