Skip to content

Python 2.7.6 unchecked return values in I O functions

ebranca edited this page Jun 21, 2014 · 1 revision

List of files with possible unchecked return values in I/O functions

Python Version: 2.7.6

Source file: './Modules/_ctypes/libffi/src/dlmalloc.c'
read(fd, buf, sizeof(buf)) == sizeof(buf)) {
Source file: './Modules/mmapmodule.c'
lseek(fileno, 0, SEEK_SET);
Source file: './Modules/ossaudiodev.c'
ioctl(fd, SNDCTL_DSP_cmd, &arg)
Source file: './Modules/posixmodule.c'
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 */
fcntl(stdio[i].handle, F_SETFD, stdio[i].flags | FD_CLOEXEC);
fcntl(p_fd[0].wr, F_SETFD, i | FD_CLOEXEC);
fcntl(p_fd[1].rd, F_SETFD, i | FD_CLOEXEC);
fcntl(p_fd[2].rd, F_SETFD, i | FD_CLOEXEC);
fcntl(i, F_SETFD, stdio[i].flags);
fcntl(fd, F_SETFL, flags | O_APPEND);
fcntl(fd, F_SETFL, flags);
Source file: './Modules/signalmodule.c'
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);
Source file: './Parser/intrcheck.c'
write(2, message, strlen(message));
Source file: './Python/import.c'
fseek(fp, 4L, 0);
  • Home
  • [Security Concerns](Security Concerns)
Clone this wiki locally