Skip to content

Commit 6356106

Browse files
committed
shm: use _oidc_strcpy instead of _oidc_strcpy; see #1353
avoid segfaults on some platforms such as Amazon Linux 2023 Signed-off-by: Hans Zandbelt <[email protected]>
1 parent cf0c9c6 commit 6356106

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
09/29/2025
22
- refresh: turn debug printouts in config errors into warnings; see #1349; thanks@CrazyWolf13
3+
- shm: use _oidc_strcpy instead of _oidc_strcpy to avoid segfaults on some platforms; see #1353
34

45
09/27/2025
56
- logout: when revoking tokens at the revocation endpoint with client_secret_jwt or

src/cache/shm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ static apr_byte_t oidc_cache_shm_set(request_rec *r, const char *section, const
302302
if (value != NULL) {
303303

304304
/* fill out the entry with the provided data */
305-
_oidc_strncpy(t->section_key, section_key, OIDC_CACHE_SHM_KEY_MAX - 1);
305+
_oidc_strcpy(t->section_key, section_key);
306306
_oidc_strcpy(t->value, value);
307307
t->expires = expiry;
308308
t->access = current_time;

0 commit comments

Comments
 (0)