[Patch v1 0/3] Replace strbuf_write_fd with write_in_full

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Randall S. Becker" <rsbecker@xxxxxxxxxxxxx>

The strbuf_write_fd method does not check whether the buffer exceeds
MAX_IO_SIZE on the target platform. This fix replaces the use of that
method with write_in_full, which does. Since this is the only use of
strbuf_write_fd, and since the method was unsafe, it has been removed
from strbuf.c and strbuf.h.

Randall S. Becker (3):
  bugreport.c: replace strbuf_write_fd with write_in_full
  strbuf.c: remove unreferenced strbuf_write_fd method.
  strbuf.h: remove declaration of deprecated strbuf_write_fd method.

 bugreport.c | 5 ++++-
 strbuf.c    | 5 -----
 strbuf.h    | 1 -
 3 files changed, 4 insertions(+), 7 deletions(-)

-- 
2.21.0




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux