mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-21 20:05:42 +02:00
module/script: ‘9’ is a valid digit
The script module incorrectly rejected range tag end values containing the digit ‘9’. Closes #60
This commit is contained in:
parent
8fc0d148c8
commit
60ee992a73
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue