Add 'Errata 2023 06 27 b'
parent
54602f2076
commit
d9076444f0
|
@ -0,0 +1,26 @@
|
|||
## Errata:
|
||||
|
||||
Date:: 2023-06-27
|
||||
|
||||
Affects:: All releases prior to [Ximenia](Releases-Ximenia)
|
||||
|
||||
Description:: If the template ends in a `%` character, `openpam_subst(3)` will read past the end.
|
||||
|
||||
Workaround:: None.
|
||||
|
||||
Fix:: Upgrade to [OpenPAM Ximenia](Releases-Ximenia). If you are unable or unwilling to upgrade, apply the following patch:
|
||||
|
||||
```
|
||||
--- lib/libpam/openpam_subst.c.orig
|
||||
+++ lib/libpam/openpam_subst.c
|
||||
@@ -104,7 +104,8 @@ openpam_subst(const pam_handle_t *pamh,
|
||||
subst_char('%');
|
||||
subst_char(*template);
|
||||
}
|
||||
- ++template;
|
||||
+ if (*template)
|
||||
+ ++template;
|
||||
} else {
|
||||
subst_char(*template++);
|
||||
}
|
||||
```
|
Loading…
Reference in New Issue