-
Notifications
You must be signed in to change notification settings - Fork 108
Python 3.1.5 unchecked return values in I O functions
ebranca edited this page Jun 21, 2014
·
1 revision
fseek(fp, 0, 0);
fseek(fp, 0, 0);
lseek(fileno, 0, SEEK_SET);
ioctl(fd, SNDCTL_DSP_cmd, &arg)
closedir(dirp);
closedir(dirp);
closedir(dirp);
ioctl(slave_fd, I_PUSH, "ptem"); /* push ptem */
ioctl(slave_fd, I_PUSH, "ldterm"); /* push ldterm */
ioctl(slave_fd, I_PUSH, "ttcompat"); /* push ttcompat */
write(wakeup_fd, "\0", 1);
ioctl(s->sock_fd, FIONBIO, (caddr_t)&block, sizeof(block));
ioctl(s->sock_fd, FIONBIO, (unsigned int *)&block);
fcntl(s->sock_fd, F_SETFL, delay_flag);
fseek(fp, -22, SEEK_END);
fseek(fp, header_offset, 0); /* Start of file header */
fseek(fp, header_offset + 10, 0);
fseek(fp, header_offset + 42, 0);
fseek(fp, file_offset, 0);
fseek(fp, file_offset + 26, 0);
write(2, message, strlen(message));
fseek(fp, 4L, 0);
lseek(fd, 0, 0); /* Reset position */
lseek(fd, 0, 0); /* Reset position */
Main site: pythonsecurity.org
OWASP Page: owasp.org/index.php/OWASP_Python_Security_Project