diff options
author | craig.schlenter@chromium.org <craig.schlenter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-11 16:26:07 +0000 |
---|---|---|
committer | craig.schlenter@chromium.org <craig.schlenter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-11 16:26:07 +0000 |
commit | d921e845da88fb6a132dfb702ee787adac2a804a (patch) | |
tree | f4859009f7e56662cb938c7ca5a329782b089a25 /chrome/common | |
parent | b075689dda171c2e3a5f5ff99ecdac27ab87f7ab (diff) | |
download | chromium_src-d921e845da88fb6a132dfb702ee787adac2a804a.zip chromium_src-d921e845da88fb6a132dfb702ee787adac2a804a.tar.gz chromium_src-d921e845da88fb6a132dfb702ee787adac2a804a.tar.bz2 |
Extensions: Ensure that variable strings passed to ParseError aren't interpreted as format strings.
BUG=31085
Review URL: http://codereview.chromium.org/523131
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35904 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/extensions/update_manifest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/extensions/update_manifest.cc b/chrome/common/extensions/update_manifest.cc index d6317c1..e3f1b4d 100644 --- a/chrome/common/extensions/update_manifest.cc +++ b/chrome/common/extensions/update_manifest.cc @@ -193,7 +193,7 @@ bool UpdateManifest::Parse(const std::string& manifest_xml) { ScopedXmlDocument document(xmlParseDoc( reinterpret_cast<const xmlChar*>(manifest_xml.c_str()))); if (!document.get()) { - ParseError(xml_errors.c_str()); + ParseError("%s", xml_errors.c_str()); return false; } @@ -228,7 +228,7 @@ bool UpdateManifest::Parse(const std::string& manifest_xml) { Result current; std::string error; if (!ParseSingleAppTag(apps[i], gupdate_ns, ¤t, &error)) { - ParseError(error.c_str()); + ParseError("%s", error.c_str()); return false; } results_.push_back(current); |