From: | Першин Юрий Петрович <pershin(at)prosoftsystems(dot)ru> |
---|---|
To: | "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org> |
Subject: | READ AV Bug@psqlodbc30a.dll |
Date: | 2020-12-19 02:58:52 |
Message-ID: | 15b7ea3bfae04c7992c6fcc1aaf8a3e5@prosoftsystems.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
HI!
size_t
strncpy_null(char *dst, const char *src, ssize_t len)
{
int i;
if (NULL != dst && len > 0)
{
for (i = 0; src[i] && i < len - 1; i++)
dst[i] = src[i];
dst[i] = '\0';
}
else
return 0;
if (src[i])
return strlen(src); <==!!! Read after len bytes -> access violation under AppVerifier
return i;
}
From | Date | Subject | |
---|---|---|---|
Next Message | Першин Юрий Петрович | 2020-12-22 20:13:01 | SQLNativeSqlW bug (when both szSqlStr and cbSqlStrMax==0) |
Previous Message | Першин Юрий Петрович | 2020-12-19 00:22:48 | RE: windows AppVerifier reports memory leak after strdup (psqlodbc35w.dll ver 13.00) |