Fix latent bug in get_stats_option_name()
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Author:
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2026-03-30T17:34:48Z
Releases:
19 (unreleased)
Fix latent bug in get_stats_option_name() The function is supposed to look at the passed in 'arg' argument, but peeks at the 'optarg' global variable that's part of getopt() instead. It happened to work anyway, because all callers passed 'optarg' as the argument. Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Discussion: https://www.postgresql.org/message-id/d1da5f0e-0d68-47c9-a882-eb22f462752f@iki.fi
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/tcop/postgres.c | modified | +2 −2 |
Discussion
- report on not thread-safe functions 9 messages · 2024-06-06 → 2026-03-30