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

Side by Side Diff: include/v8.h

Issue 11961012: Avoid pointer underflow in CopyCharsUnsigned. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix indentation Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/v8utils.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 int start = 0, 1128 int start = 0,
1129 int length = -1, 1129 int length = -1,
1130 int options = NO_OPTIONS) const; 1130 int options = NO_OPTIONS) const;
1131 // ASCII characters. 1131 // ASCII characters.
1132 int WriteAscii(char* buffer, 1132 int WriteAscii(char* buffer,
1133 int start = 0, 1133 int start = 0,
1134 int length = -1, 1134 int length = -1,
1135 int options = NO_OPTIONS) const; 1135 int options = NO_OPTIONS) const;
1136 // One byte characters. 1136 // One byte characters.
1137 int WriteOneByte(uint8_t* buffer, 1137 int WriteOneByte(uint8_t* buffer,
1138 int start = 0, 1138 int start = 0,
1139 int length = -1, 1139 int length = -1,
1140 int options = NO_OPTIONS) const; 1140 int options = NO_OPTIONS) const;
1141 // UTF-8 encoded characters. 1141 // UTF-8 encoded characters.
1142 int WriteUtf8(char* buffer, 1142 int WriteUtf8(char* buffer,
1143 int length = -1, 1143 int length = -1,
1144 int* nchars_ref = NULL, 1144 int* nchars_ref = NULL,
1145 int options = NO_OPTIONS) const; 1145 int options = NO_OPTIONS) const;
1146 1146
1147 /** 1147 /**
1148 * A zero length string. 1148 * A zero length string.
1149 */ 1149 */
1150 static v8::Local<v8::String> Empty(); 1150 static v8::Local<v8::String> Empty();
(...skipping 3678 matching lines...) Expand 10 before | Expand all | Expand 10 after
4829 4829
4830 4830
4831 } // namespace v8 4831 } // namespace v8
4832 4832
4833 4833
4834 #undef V8EXPORT 4834 #undef V8EXPORT
4835 #undef TYPE_CHECK 4835 #undef TYPE_CHECK
4836 4836
4837 4837
4838 #endif // V8_H_ 4838 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/v8utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698