~ubuntu-branches/ubuntu/trusty/expat/trusty-proposed

« back to all changes in this revision

Viewing changes to xmlwf/readfilemap.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-20 22:37:22 UTC
  • mfrom: (1.1.4) (5.1.7 precise)
  • Revision ID: package-import@ubuntu.com-20120320223722-wq8sq4gykhlvc8j9
Tags: 2.1.0~beta3-1
* QA upload.
* Beta release 2.1.0 beta3. Closes: #663579.
  - CVE-2012-1147 - Resource leak in readfilemap.c.
  - CVE-2012-1148 - Memory leak in poolGrow.
  - CVE-2012-0876 - Hash DOS attack.
  - Remove patches applied upstream.
* Remove Daniel from uploaders (orphaned package).
* Update package format to 3.0.
* Enable hardened build. Closes: #653526.
* Add a symbols file.
* Install expat pkgconfig file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
  }
59
59
  if (fstat(fd, &sb) < 0) {
60
60
    perror(name);
 
61
    close(fd);
61
62
    return 0;
62
63
  }
63
64
  if (!S_ISREG(sb.st_mode)) {
64
65
    fprintf(stderr, "%s: not a regular file\n", name);
 
66
    close(fd);
65
67
    return 0;
66
68
  }
67
69
  nbytes = sb.st_size;