skia2/resources
Leon Scroggins III 4cdbf6056d Avoid uninitialized memory in readByteArrayAsData
Bug: 769134

readByteArray can fail (due to not having enough available or due to the
wrong alignment). If it does, do not return an uninitialized block of
memory.

Further, drop the initial size check, which is covered by readByteArray.

Add a test.

Change-Id: Ia101697c5bb1ca3ae3df1795f37a74b2f602797d
Reviewed-on: https://skia-review.googlesource.com/52742
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
2017-09-28 19:51:32 +00:00
..
android_fonts Move lang to list in Android font manager. 2017-08-14 19:29:05 +00:00
empty_images Do not create an SkRawCodec with zero dimensions 2016-12-02 22:23:35 +00:00
fonts GM: add test for type1 font 2016-09-20 13:11:01 -07:00
icc_profiles Avoid interpolating color lut with less than 2 points 2017-05-05 15:18:03 +00:00
invalid_images Fix double delete in SkBmpCodec 2017-07-14 16:25:54 +00:00
1x1.png
1x3.png
1x16.png
2x2.png
3x1.png
3x3.png
16x1.png
alphabetAnim.gif Correct GIF frame dependencies and track alpha 2017-04-11 15:05:05 +00:00
arrow.png
baby_tux.png
baby_tux.webp
blendBG.webp Add animation support to SkWebpCodec 2017-05-23 15:28:37 +00:00
box.gif Add a test for getFrameInfo on truncated data 2017-04-17 16:35:35 +00:00
brickwork_normal-map.jpg
brickwork-texture.jpg
CMYK.jpg
color_wheel_with_profile.png
color_wheel.gif
color_wheel.ico
color_wheel.jpg
color_wheel.png
color_wheel.webp
colorTables.gif Report repetition count in SkCodec 2016-11-01 08:28:28 -07:00
Cowboy.svg Add animated cowboy sample from WebKit tests, and fix. 2017-09-25 21:14:09 +00:00
crbug769134.fil Avoid uninitialized memory in readByteArrayAsData 2017-09-28 19:51:32 +00:00
cropped_mandrill.jpg
dng_with_preview.dng
dog.jpg Better image for copyTo4444 test 2017-06-01 17:01:53 +00:00
exif-orientation-2-ur.jpg
flutter_logo.jpg Add tool to create test images with interesting color profiles 2017-05-17 18:15:20 +00:00
gamut.png Add interesting features to visualize_color_gamut 2016-05-27 14:01:02 -07:00
google_chrome.ico
grayscale.jpg
half-transparent-white-pixel.png
half-transparent-white-pixel.webp
icc-v2-gbr.jpg
iconstrip.png
index8.png
mandrill_16.png
mandrill_32.png
mandrill_64.png
mandrill_128.png
mandrill_256.png
mandrill_512_q075.jpg
mandrill_512.png
mandrill_h1v1.jpg
mandrill_h2v1.jpg
mandrill.wbmp
nov-talk-sequence.txt
pdf_command_stream.txt
plane_interlaced.png
plane.png
rainbow-gradient.png Add jpeg encoder alpha handling option 2017-05-09 18:32:04 +00:00
randPixels.bmp
randPixels.gif
randPixels.jpg
randPixels.png
randPixels.webp
randPixelsAnim2.gif Correct GIF frame dependencies and track alpha 2017-04-11 15:05:05 +00:00
randPixelsAnim.gif GIF: Better check for frame dependency 2017-01-03 19:07:41 +00:00
randPixelsOffset.gif Only attempt index8 if underlying GIF is index8 2016-12-16 19:51:52 +00:00
README Add animated cowboy sample from WebKit tests, and fix. 2017-09-25 21:14:09 +00:00
required.gif Make SkCodec more flexible about its required frame 2017-06-07 20:15:17 +00:00
required.webp Make SkCodec more flexible about its required frame 2017-06-07 20:15:17 +00:00
rle.bmp
sample_1mp_rotated.dng
sample_1mp.dng
shadowreference.png Add Material Design shadow reference sample 2017-05-23 18:12:15 +00:00
ship.png Add ship.png for DrawShip sample 2017-05-23 20:35:17 +00:00
slides_content2.lua
slides_content.lua
slides_transitions.lua
slides_utils.lua
slides.lua Remove SkTypeface::Style from fuzzers and lua. 2017-08-08 15:27:19 +00:00
test640x479.gif
test.lua Remove SkTypeface::Style from fuzzers and lua. 2017-08-08 15:27:19 +00:00
webp-animated.webp Add animation support to SkWebpCodec 2017-05-23 15:28:37 +00:00
webp-color-profile-crash.webp Parse ICC profiles from webps 2016-08-24 07:36:06 -07:00
webp-color-profile-lossless.webp Parse ICC profiles from webps 2016-08-24 07:36:06 -07:00
webp-color-profile-lossy-alpha.webp Parse ICC profiles from webps 2016-08-24 07:36:06 -07:00
webp-color-profile-lossy.webp Parse ICC profiles from webps 2016-08-24 07:36:06 -07:00
yellow_rose.png
yellow_rose.webp

The resources directory includes some third party content used by Skia.
Licenses for that code are included in this file.

Openclipart

Openclipart uses the Creative Commons Zero 1.0 Public Domain License every time
an artist uploads a piece of clipart to Openclipart to make it clear the artist
is releasing the creative work for anyone to use for any reason, even
commercially. This act of "sharing" is the foundation Openclipart is based upon.
More details on the license can be found at
https://creativecommons.org/publicdomain/zero/1.0/.

LGPL or compatible (as implied by inclusion in KDE SVN)
http://websvn.kde.org/trunk/tests/ksvgtests/custom/cowboy.svg