diff --git a/CHANGELOG.md b/CHANGELOG.md index fa0cc0b..c78a2a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,8 @@ (https://codeberg.org/dnkl/yambar/issues/45). * Crash when a string particle contained `{}` (https://codeberg.org/dnkl/yambar/issues/48). +* `script` module rejecting range tag end values containing the digit + `9` (https://codeberg.org/dnkl/yambar/issues/60). ### Security diff --git a/modules/script.c b/modules/script.c index 7e07365..a938f7d 100644 --- a/modules/script.c +++ b/modules/script.c @@ -180,7 +180,7 @@ process_line(struct module *mod, const char *line, size_t len) long end = 0; for (size_t i = 0; i < end_len; i++) { - if (!(_end[i] >= '0' && _end[i] < '9')) { + if (!(_end[i] >= '0' && _end[i] <= '9')) { LOG_ERR( "tag range end is not an integer: %.*s", (int)end_len, _end);