projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b4c69e
)
fix bounds check for ctables (thanks Hal)
author
reed
<reed@google.com>
Fri, 28 Aug 2015 19:38:04 +0000
(12:38 -0700)
committer
Commit bot
<commit-bot@chromium.org>
Fri, 28 Aug 2015 19:38:04 +0000
(12:38 -0700)
BUG=skia:
Review URL: https://codereview.chromium.org/
1319973008
src/core/SkColorTable.cpp
patch
|
blob
|
history
diff --git
a/src/core/SkColorTable.cpp
b/src/core/SkColorTable.cpp
index
e461a09
..
ca9a865
100644
(file)
--- a/
src/core/SkColorTable.cpp
+++ b/
src/core/SkColorTable.cpp
@@
-36,7
+36,7
@@
SkColorTable::SkColorTable(SkPMColor* colors, int count, AllocatedWithMalloc)
: fColors(colors)
, fCount(count)
{
- SkASSERT(count > 0 && count <= 25
5
);
+ SkASSERT(count > 0 && count <= 25
6
);
SkASSERT(colors);
}
@@
-108,7
+108,7
@@
SkColorTable* SkColorTable::Create(SkReadBuffer& buffer) {
return new SkColorTable(nullptr, 0);
}
- if (count < 0 || count > 25
5
) {
+ if (count < 0 || count > 25
6
) {
buffer.validate(false);
return nullptr;
}