skia2/include
John Stiles 40e3b3c605 Assert when creating nullptr spans with a nonzero length.
According to https://en.cppreference.com/w/cpp/container/span/span (2),
it  is undefined behavior if [first, first + count) is not a valid
range, so it is standards-conforming to assert on this span.

This caught one case in GlyphRun where we were creating an invalid
span (which was apparently harmless in practice).

Change-Id: Ia0661b3bd13c2c5773492960eea11b1a294072d5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/550499
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2022-06-17 14:07:15 +00:00
..
android [bazel] Add "skia_internal" target that exposes private API for tests/tools. 2022-06-02 11:23:50 +00:00
c [bazel] Add fixes for G3 2022-05-31 19:50:47 +00:00
codec [bazel] Add "skia_internal" target that exposes private API for tests/tools. 2022-06-02 11:23:50 +00:00
config [bazel] Add "skia_internal" target that exposes private API for tests/tools. 2022-06-02 11:23:50 +00:00
core Assert when creating nullptr spans with a nonzero length. 2022-06-17 14:07:15 +00:00
docs [bazel] Add "skia_internal" target that exposes private API for tests/tools. 2022-06-02 11:23:50 +00:00
effects Remove SkMakeSpan 2022-06-15 17:26:32 +00:00
encode [bazel] Add "skia_internal" target that exposes private API for tests/tools. 2022-06-02 11:23:50 +00:00
gpu Add glCopyBufferSubData to GrGLInterface 2022-06-16 18:12:23 +00:00
pathops [bazel] Add "skia_internal" target that exposes private API for tests/tools. 2022-06-02 11:23:50 +00:00
ports [bazel] Add "skia_internal" target that exposes private API for tests/tools. 2022-06-02 11:23:50 +00:00
private Add SkPaintParamsKey::Header structure. 2022-06-16 17:51:10 +00:00
sksl Remove SkMakeSpan 2022-06-15 17:26:32 +00:00
svg [bazel] Add "skia_internal" target that exposes private API for tests/tools. 2022-06-02 11:23:50 +00:00
third_party [bazel] Add "skia_internal" target that exposes private API for tests/tools. 2022-06-02 11:23:50 +00:00
utils Revert "Move SkSubRun to src/text" 2022-06-15 22:33:12 +00:00
BUILD.bazel [bazel] Add "skia_internal" target that exposes private API for tests/tools. 2022-06-02 11:23:50 +00:00
OWNERS Add Bazel folks as owners to BUILD.bazel files 2021-11-09 14:24:54 +00:00