aboutsummaryrefslogtreecommitdiff
path: root/release-notes
diff options
context:
space:
mode:
authorzhrvn <107057313+zhrvn@users.noreply.github.com>2022-09-12 10:03:50 +0300
committerGitHub <noreply@github.com>2022-09-12 09:03:50 +0200
commit5ce8e3241bf4fc4c3c975209d2e145564f633261 (patch)
treeb5bfd5007bc806ac97c1f2bba4c79959a6835235 /release-notes
parente48b9aa284c73d257f4b828987d9c026d8479c1b (diff)
downloadi3-5ce8e3241bf4fc4c3c975209d2e145564f633261.tar.gz
i3-5ce8e3241bf4fc4c3c975209d2e145564f633261.zip
Fix crash in parse_file() when parsing nested variables (#5003)
Count extra_bytes correctly If there is a variable with the same name as the rest of another variable after removing $, then it will be counted twice. Therefore, we need to completely replace it with spaces (variable names cannot contain spaces) in order to correctly calculate the length of a new string. fixes https://github.com/i3/i3/pull/5002 Co-authored-by: Ivan Zharov <zhiv.email@gmail.com> Co-authored-by: Michael Stapelberg <stapelberg@users.noreply.github.com>
Diffstat (limited to 'release-notes')
-rw-r--r--release-notes/bugfixes/8-fix-nested-variables-crash1
1 files changed, 1 insertions, 0 deletions
diff --git a/release-notes/bugfixes/8-fix-nested-variables-crash b/release-notes/bugfixes/8-fix-nested-variables-crash
new file mode 100644
index 00000000..44058ce0
--- /dev/null
+++ b/release-notes/bugfixes/8-fix-nested-variables-crash
@@ -0,0 +1 @@
+Fix crash if config contains nested variables.