diff options
author | Dylan Araps | 2017-08-12 20:55:00 +1000 |
---|---|---|
committer | Dylan Araps | 2017-08-12 20:55:00 +1000 |
commit | a751e6ab2e8e8b88b84f4ea70f746eea494a36fb (patch) | |
tree | 467212896a691a6f146e0002c3d7d440b80b72e0 /openbox-3.6.2-fix-out-of-bounds.patch | |
download | aur-a751e6ab2e8e8b88b84f4ea70f746eea494a36fb.tar.gz |
initial commit
Diffstat (limited to 'openbox-3.6.2-fix-out-of-bounds.patch')
-rw-r--r-- | openbox-3.6.2-fix-out-of-bounds.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/openbox-3.6.2-fix-out-of-bounds.patch b/openbox-3.6.2-fix-out-of-bounds.patch new file mode 100644 index 000000000000..5bf59af644e1 --- /dev/null +++ b/openbox-3.6.2-fix-out-of-bounds.patch @@ -0,0 +1,22 @@ +From b0ed75ee851121ad25491ef6e1dca25be7bc50f3 Mon Sep 17 00:00:00 2001 +From: o9000 <mrovi9000@gmail.com> +Date: Wed, 5 Apr 2017 12:38:10 +0200 +Subject: [PATCH] Fix out-of-bounds read + +--- + openbox/frame.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/openbox/frame.c b/openbox/frame.c +index 89669726a..943b6380b 100644 +--- a/openbox/frame.c ++++ b/openbox/frame.c +@@ -1215,7 +1215,7 @@ static void layout_title(ObFrame *self) + } + + /* stop at the end of the string (or the label, which calls break) */ +- for (; *lc != '\0' && lc >= config_title_layout; lc+=i) { ++ for (; lc >= config_title_layout && *lc != '\0'; lc+=i) { + if (*lc == 'L') { + if (i > 0) { + self->label_on = TRUE; |