Skip to content

Python 3.3.5 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: 3.3.5

Source file: './Modules/_ctypes/libffi/src/dlmalloc.c'
read(fd, buf, sizeof(buf)) == sizeof(buf)) {
Source file: './Modules/_cursesmodule.c'
fseek(fp, 0, 0);
fseek(fp, 0, 0);
Source file: './Modules/faulthandler.c'
write(thread.fd, thread.header, thread.header_len);
Source file: './Modules/getpath.c'
fseek(env_file, 0, SEEK_SET);
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);
ioctl(slave_fd, I_PUSH, "ptem"); /* push ptem */
ioctl(slave_fd, I_PUSH, "ldterm"); /* push ldterm */
ioctl(slave_fd, I_PUSH, "ttcompat"); /* push ttcompat */
Source file: './Modules/_posixsubprocess.c'
fcntl(fd_dir_fd, F_SETFD, old | FD_CLOEXEC);
closedir(proc_fd_dir);
fcntl(p2cread, F_SETFD, old & ~FD_CLOEXEC);
fcntl(c2pwrite, F_SETFD, old & ~FD_CLOEXEC);
fcntl(errwrite, F_SETFD, old & ~FD_CLOEXEC);
Source file: './Modules/signalmodule.c'
write(wakeup_fd, &byte, 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: './Modules/zlib/gzlib.c'
open(path,
Source file: './Parser/tokenizer.c'
lseek(fd, (off_t)(pos > 0 ? pos - 1 : pos), SEEK_SET) == (off_t)-1) {
Source file: './PC/getpathp.c'
fseek(env_file, 0, SEEK_SET);
Source file: './Python/traceback.c'
write(fd, buffer, len);
write(fd, buffer, len);
write(fd, &c, 1);
write(fd, "\"", 1);
write(fd, "\"", 1);
write(fd, "\n", 1);
write(fd, "\n", 1);
  • Home
  • [Security Concerns](Security Concerns)
Clone this wiki locally