| From: | ma lz <ma100(at)hotmail(dot)com> |
|---|---|
| To: | "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
| Subject: | 回复: uninitialized var in encnames.c |
| Date: | 2026-01-15 08:06:00 |
| Message-ID: | TY3PR01MB11513ADF3C6A5DF5E0A89B1FEF28CA@TY3PR01MB11513.jpnprd01.prod.outlook.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
I've made a mistake, please ignore last mail
________________________________
发件人: ma lz
发送时间: 2026年1月15日 16:00
收件人: pgsql-bugs(at)lists(dot)postgresql(dot)org <pgsql-bugs(at)lists(dot)postgresql(dot)org>
主题: uninitialized var in encnames.c
int
pg_char_to_encoding(const char *name)
{
char buff[NAMEDATALEN], // ------------------ UNINITIALIZED
key = clean_encoding_name(name, buff);
}
static char *
clean_encoding_name(const char *key, char *newkey)
{
const char *p;
char *np;
for (p = key, np = newkey; *p != '\0'; p++)
{
if (isalnum((unsigned char) *p))
{
if (*p >= 'A' && *p <= 'Z')
*np++ = *p + 'a' - 'A';
else
*np++ = *p;
}
}
*np = '\0';
return newkey;
}
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Amit Langote | 2026-01-15 11:39:01 | Re: BUG #19355: Attempt to insert data unexpectedly during concurrent update |
| Previous Message | ma lz | 2026-01-15 08:00:50 | uninitialized var in encnames.c |