1. 20 Jun, 2011 2 commits
    • Paul Eggert's avatar
      * font.c: Don't assume string length fits in int. · b5b8c9e5
      Paul Eggert authored
      (font_parse_xlfd, font_parse_fcname, font_unparse_fcname):
      Use ptrdiff_t, not int.
      b5b8c9e5
    • Paul Eggert's avatar
      * filelock.c: Fix some buffer overrun and integer overflow issues. · 882f0d81
      Paul Eggert authored
      (get_boot_time): Don't assume that gzip command string fits in 100 bytes.
      Reformulate so as not to need the command string.
      Invoke gzip -cd rather than gunzip, as it's more portable.
      (lock_info_type, lock_file_1, lock_file):
      Don't assume pid_t and time_t fit in unsigned long.
      (LOCK_PID_MAX): Remove; we now use more-reliable bounds.
      (current_lock_owner): Prefer signed type for sizes.
      Use memcpy, not strncpy, where memcpy is what is really wanted.
      Don't assume (via atoi) that time_t and pid_t fit in int.
      Check for time_t and/or pid_t out of range, e.g., via a network share.
      Don't alloca where an auto var works fine.
      882f0d81
  2. 19 Jun, 2011 14 commits
  3. 18 Jun, 2011 21 commits
  4. 17 Jun, 2011 3 commits