Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: third_party/expat/files/lib/xmlparse.c.original

Issue 1151263010: Apply a patch from Mozilla to prevent an integer overflow in expat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use the more common case for capitilization Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/expat/files/lib/xmlparse.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd 1 /* Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
2 See the file COPYING for copying permission. 2 See the file COPYING for copying permission.
3 */ 3 */
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 #include <string.h> /* memset(), memcpy() */ 6 #include <string.h> /* memset(), memcpy() */
7 #include <assert.h> 7 #include <assert.h>
8 #include <limits.h> /* UINT_MAX */ 8 #include <limits.h> /* UINT_MAX */
9 #include <time.h> /* time() */ 9 #include <time.h> /* time() */
10 10
(...skipping 6383 matching lines...) Expand 10 before | Expand all | Expand 10 after
6394 return NULL; 6394 return NULL;
6395 if (ret->name != name) 6395 if (ret->name != name)
6396 poolDiscard(&dtd->pool); 6396 poolDiscard(&dtd->pool);
6397 else { 6397 else {
6398 poolFinish(&dtd->pool); 6398 poolFinish(&dtd->pool);
6399 if (!setElementTypePrefix(parser, ret)) 6399 if (!setElementTypePrefix(parser, ret))
6400 return NULL; 6400 return NULL;
6401 } 6401 }
6402 return ret; 6402 return ret;
6403 } 6403 }
OLDNEW
« no previous file with comments | « third_party/expat/files/lib/xmlparse.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698