diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2012-03-05 00:25:32 +0100 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2012-03-05 00:25:32 +0100 |
commit | b3c36c6e2f0c78797d1398e3176aac6a48b36295 (patch) | |
tree | 3cd7ff5caa047585b1119a4e7e4184f4b556cfc7 /apt-pkg/deb | |
parent | b4a6673c488200a1a52fd2732566ed05a4bc0dbb (diff) |
set char-limits for the scanf parsing previous crash-reports
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 469132634..c46a81209 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -1542,7 +1542,7 @@ void pkgDPkgPM::WriteApportReport(const char *pkgpath, const char *errormsg) if(strstr(strbuf,"Package:") == strbuf) { char pkgname[255], version[255]; - if(sscanf(strbuf, "Package: %s %s", pkgname, version) == 2) + if(sscanf(strbuf, "Package: %254s %254s", pkgname, version) == 2) if(strcmp(pkgver.c_str(), version) == 0) { fclose(report); |