commit | 221521178e28a58a7ac60726494600b833374f28 | [log] [tgz] |
---|---|---|
author | kbr@chromium.org <kbr@chromium.org@736b8ea6-26fd-11df-bfd4-992fa37f6226> | Wed Oct 26 01:18:28 2011 +0000 |
committer | kbr@chromium.org <kbr@chromium.org@736b8ea6-26fd-11df-bfd4-992fa37f6226> | Wed Oct 26 01:18:28 2011 +0000 |
tree | 165178244638510033dc747062ef5f7f5c0c18fe | |
parent | fdea69468d7d4c5b2ecc1f836e070e8b26642495 [diff] [blame] |
Limit copied uniform and vertex attribute names to the implicit size of the buffers passed in. Increase the size of the buffer the client will allocate for mapped names to be equal to the maximum token length. BUG=http://code.google.com/p/angleproject/issues/detail?id=234 TEST=WebGL conformance test to be checked in soon Review URL: http://codereview.appspot.com/5306063 git-svn-id: https://angleproject.googlecode.com/svn/trunk@804 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/preprocessor/scanner.h b/src/compiler/preprocessor/scanner.h index 33306e5..233d1dc 100644 --- a/src/compiler/preprocessor/scanner.h +++ b/src/compiler/preprocessor/scanner.h
@@ -48,10 +48,7 @@ #if !defined(__SCANNER_H) #define __SCANNER_H 1 -// These lengths do not include the NULL terminator. -#define MAX_SYMBOL_NAME_LEN 256 -#define MAX_STRING_LEN 511 - +#include "compiler/preprocessor/length_limits.h" #include "compiler/preprocessor/parser.h" // Not really atom table stuff but needed first...