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

Unified Diff: gpu/command_buffer/service/cmd_parser.h

Issue 614006: Fixes the issues with Jump, JumpRel, Call, CallRel (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/service/cmd_parser_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/cmd_parser.h
===================================================================
--- gpu/command_buffer/service/cmd_parser.h (revision 39125)
+++ gpu/command_buffer/service/cmd_parser.h (working copy)
@@ -32,7 +32,7 @@
// Sets the "get" pointer. The get pointer is an index into the command buffer
// considered as an array of CommandBufferEntry.
bool set_get(CommandBufferOffset get) {
- if (get < entry_count_) {
+ if (get >= 0 && get < entry_count_) {
get_ = get;
return true;
}
« no previous file with comments | « no previous file | gpu/command_buffer/service/cmd_parser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698