Opened 17 years ago
Closed 16 years ago
#5504 closed defect (fixed)
Passing a null pointer to write() is a bad idea any time (in libmythdb)
| Reported by: | Owned by: | Isaac Richards | |
|---|---|---|---|
| Priority: | trivial | Milestone: | unknown |
| Component: | mythtv | Version: | head |
| Severity: | low | Keywords: | |
| Cc: | Ticket locked: | no |
Description
The tcp/udp write calls in msocketdevice_unix.cpp can pass a null pointer to write() if the length of the data to write is zero. Although this is unlikely to be a problem, it would be better if we never passed a null pointer to write() ever.
Attachments (2)
Change History (4)
by , 17 years ago
| Attachment: | libs_libmythdb-dont-pass-null-to-write.patch added |
|---|
comment:1 by , 17 years ago
| Version: | unknown → head |
|---|
I'll keep the ticket open while we are still using msocketdevice, but this code is probably going away. Once we switch completely to Qt4 we won't be initializing the Qt3 network stack at startup and we'll probably need to replace this code.
by , 17 years ago
| Attachment: | libs_libmythdb-dont-pass-null-to-write-ticket-5504.patch added |
|---|
Fresh patch for old ticket.
comment:2 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

short ckt zero length buffer writes so null is not passed to write()