1. 13 Apr, 2011 2 commits
    • Paul Eggert's avatar
      emacs_write: Return size_t, not ssize_t, to avoid overflow issues. · 273a5f82
      Paul Eggert authored
      * gnutls.c, gnutls.h (emacs_gnutls_write): Return size_t, not ssize_t.
      * sysdep.c, lisp.h (emacs_write): Likewise.
      Without the above change, emacs_gnutls_write and emacs_write had
      undefined behavior and would typically mistakenly report an error
      when writing a buffer whose size exceeds SSIZE_MAX.
      (emacs_read, emacs_write): Remove check for negative size, as the
      Emacs source code has been audited now.
      (emacs_write): Adjust to new signature, making the code look more
      like that of emacs_gnutls_write.
      * process.c (send_process): Adjust to the new signatures of
      emacs_write and emacs_gnutls_write.  Do not attempt to store
      a byte offset into an 'int'; it might overflow.
      273a5f82
    • Paul Eggert's avatar
      * sound.c: Don't assume sizes fit in 'int'. · 3e047f51
      Paul Eggert authored
      (struct sound_device.period_size, alsa_period_size):
      Return size_t, not int.
      (struct sound_device.write, vox_write, alsa_write):
      Accept size_t, not int.
      (wav_play, au_play): Use size_t to store sizes, and ssize_t to
      record read return values.
      3e047f51
  2. 12 Apr, 2011 3 commits
  3. 11 Apr, 2011 1 commit
  4. 10 Apr, 2011 5 commits
  5. 09 Apr, 2011 14 commits
  6. 08 Apr, 2011 7 commits
  7. 07 Apr, 2011 5 commits
  8. 06 Apr, 2011 3 commits