]> git.eshelyaron.com Git - emacs.git/commit
Don't accept whitespace or hex floats in rgbi: colour specs
authorMattias Engdegård <mattiase@acm.org>
Sun, 6 Mar 2022 09:50:27 +0000 (10:50 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sun, 6 Mar 2022 13:07:26 +0000 (14:07 +0100)
commit6eeab90632506348a58d264eb3304625756c8659
tree078c13878d0eba68467e591d78c260927b6fd8de
parentea5a0142ced33884a370e9a47f8035f303382ba7
Don't accept whitespace or hex floats in rgbi: colour specs

`color-values-from-color-spec` (new in Emacs 28) erroneously accepted
leading whitespace and hex floats in rgbi: components.

Reported by Philip Kaludercic.

* src/xfaces.c (parse_float_color_comp): Disallow leading whitespace
and hex floats.
* test/src/xfaces-tests.el
(xfaces-internal-color-values-from-color-spec): Add test cases.
src/xfaces.c
test/src/xfaces-tests.el