another profile that reproduces this bug
This one draws blue where the other draws green.
Bug: chromium:875650
Change-Id: Id88e623bedb20091a699dcd3f2d2ece853dbbebf
Reviewed-on: https://skia-review.googlesource.com/151860
Auto-Submit: Mike Klein <mtklein@chromium.org>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/profiles/misc/XPS13_9360.icc b/profiles/misc/XPS13_9360.icc
new file mode 100644
index 0000000..24d8bbe
--- /dev/null
+++ b/profiles/misc/XPS13_9360.icc
Binary files differ
diff --git a/profiles/misc/XPS13_9360.icc.txt b/profiles/misc/XPS13_9360.icc.txt
new file mode 100644
index 0000000..2ee8995
--- /dev/null
+++ b/profiles/misc/XPS13_9360.icc.txt
@@ -0,0 +1,42 @@
+ Size : 0x00000558 : 1368
+ Data color space : 0x52474220 : 'RGB '
+ PCS : 0x58595A20 : 'XYZ '
+ Tag count : 0x0000000E : 14
+
+ Tag : Type : Size : Offset
+ ------ : ------ : ------ : --------
+ 'desc' : 'mluc' : 50 : 300
+ 'cprt' : 'mluc' : 134 : 352
+ 'wtpt' : 'XYZ ' : 20 : 488
+ 'chad' : 'sf32' : 44 : 508
+ 'rXYZ' : 'XYZ ' : 20 : 552
+ 'bXYZ' : 'XYZ ' : 20 : 572
+ 'gXYZ' : 'XYZ ' : 20 : 592
+ 'rTRC' : 'para' : 16 : 612
+ 'gTRC' : 'para' : 16 : 612
+ 'bTRC' : 'para' : 16 : 612
+ 'chrm' : 'chrm' : 36 : 628
+ 'meta' : 'dict' : 588 : 664
+ 'dmnd' : 'mluc' : 62 : 1252
+ 'dmdd' : 'mluc' : 50 : 1316
+
+rTRC : 2.199997, 1, 0, 0, 0, 0, 0
+gTRC : 2.199997, 1, 0, 0, 0, 0, 0
+bTRC : 2.199997, 1, 0, 0, 0, 0, 0
+Best : 2.199997, 1, 0, 0, 0, 0, 0
+ XYZ : | 0.437957764 0.384231567 0.142013550 |
+ | 0.223083496 0.716873169 0.060058594 |
+ | 0.014511108 0.097259521 0.713119507 |
+252 random bytes transformed to linear XYZD50 bytes:
+ 355733 a5d71d 4d6817 190d30 1e104a 5f4908 4d8a27
+ 6c3a2f 1c1711 6f4826 a2a514 4f610c 2d452d 44268e
+ a78f9e 4c638f 7e8851 42561a 2b1555 8b780d 8b4c9d
+ 764120 0c053a d3ef68 803f90 8ab82c 221078 4b7346
+ 4a4c30 382d3e 1f0f46 8b8f55 8fcb70 834770 427710
+ 778e87 3a4e19 552b05 559633 070807 180e68 262b51
+ 1c0d7c 292a05 496773 0a0a1a 23380c 4d3112 906a90
+ b6af5a a474b7 5d371f 406d2f 53883f 190f0f 61b21c
+ 518224 79660c 211726 362e0c 0d0833 06031b 402c1d
+ 6b626d 563861 39630e 52285d 301827 2b3150 5f678c
+ 2a4315 322482 100932 582e05 5a9814 02010c 505aa5
+ 63aa1a 44292c 3a463a 5d3c23 548e40 4e3118 516186
diff --git a/tests.c b/tests.c
index ae3685d..2c1337a 100644
--- a/tests.c
+++ b/tests.c
@@ -477,7 +477,9 @@
"profiles/misc/ColorGATE_Sihl_PhotoPaper.icc", // Broken tag table, and A2B0 fails to parse
"profiles/misc/bad_pcs.icc", // PCS is 'RGB '
- "profiles/misc/ThinkpadX1YogaV2.icc", // Unsure what the bug here is, chromium:875650.
+ // Unsure what the bug here is, chromium:875650.
+ "profiles/misc/ThinkpadX1YogaV2.icc",
+ "profiles/misc/XPS13_9360.icc",
// fuzzer generated profiles that found parsing bugs