diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-02 23:19:33 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-02 23:19:33 +0000 |
commit | b1f031ddf0723e5a4811bf9fa6fdda68c97633de (patch) | |
tree | 81be42f2b7c8cbf8e2bb5aaea1f1b1a6213413ca /net/proxy/proxy_config_service_linux.cc | |
parent | 136ba26595ceafeb57a5c4d524caf7f87b95daf3 (diff) | |
download | chromium_src-b1f031ddf0723e5a4811bf9fa6fdda68c97633de.zip chromium_src-b1f031ddf0723e5a4811bf9fa6fdda68c97633de.tar.gz chromium_src-b1f031ddf0723e5a4811bf9fa6fdda68c97633de.tar.bz2 |
Use CHECK_* in net
Review URL: http://codereview.chromium.org/660404
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40453 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_config_service_linux.cc')
-rw-r--r-- | net/proxy/proxy_config_service_linux.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/proxy/proxy_config_service_linux.cc b/net/proxy/proxy_config_service_linux.cc index 795c644..c1d18dd 100644 --- a/net/proxy/proxy_config_service_linux.cc +++ b/net/proxy/proxy_config_service_linux.cc @@ -751,8 +751,8 @@ class GConfSettingGetterImplKDE while (event_ptr < event_buf + r) { inotify_event* event = reinterpret_cast<inotify_event*>(event_ptr); // The kernel always feeds us whole events. - CHECK(event_ptr + sizeof(inotify_event) <= event_buf + r); - CHECK(event->name + event->len <= event_buf + r); + CHECK_LE(event_ptr + sizeof(inotify_event), event_buf + r); + CHECK_LE(event->name + event->len, event_buf + r); if (!strcmp(event->name, "kioslaverc")) kioslaverc_touched = true; // Advance the pointer just past the end of the filename. |