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

Side by Side Diff: test/mjsunit/fuzz-natives-part2.js

Issue 72813004: Fixed crashes exposed though fuzzing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix nits Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « test/mjsunit/fuzz-natives-part1.js ('k') | test/mjsunit/fuzz-natives-part3.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 func.apply(void 0, argList); 109 func.apply(void 0, argList);
110 } catch (e) { 110 } catch (e) {
111 // we don't care what happens as long as we don't crash 111 // we don't care what happens as long as we don't crash
112 } 112 }
113 type++; 113 type++;
114 } 114 }
115 } 115 }
116 116
117 var knownProblems = { 117 var knownProblems = {
118 "Abort": true, 118 "Abort": true,
119 "ThrowMessage": true,
119 120
120 // Avoid calling the concat operation, because weird lengths 121 // Avoid calling the concat operation, because weird lengths
121 // may lead to out-of-memory. Ditto for StringBuilderJoin. 122 // may lead to out-of-memory. Ditto for StringBuilderJoin.
122 "StringBuilderConcat": true, 123 "StringBuilderConcat": true,
123 "StringBuilderJoin": true, 124 "StringBuilderJoin": true,
124 125
125 // These functions use pseudo-stack-pointers and are not robust 126 // These functions use pseudo-stack-pointers and are not robust
126 // to unexpected integer values. 127 // to unexpected integer values.
127 "DebugEvaluate": true, 128 "DebugEvaluate": true,
128 129
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 if (name in knownProblems || name in currentlyUncallable) 233 if (name in knownProblems || name in currentlyUncallable)
233 continue; 234 continue;
234 print(name); 235 print(name);
235 var argc = nativeInfo[1]; 236 var argc = nativeInfo[1];
236 testArgumentCount(name, argc); 237 testArgumentCount(name, argc);
237 testArgumentTypes(name, argc); 238 testArgumentTypes(name, argc);
238 } 239 }
239 } 240 }
240 241
241 testNatives(); 242 testNatives();
OLDNEW
« no previous file with comments | « test/mjsunit/fuzz-natives-part1.js ('k') | test/mjsunit/fuzz-natives-part3.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698