mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-22387: Do not violate __attribute__((nonnull))
This follows up commit commit94a520ddbe
and commit7c5519c12d
. After these changes, the default test suites on a cmake -DWITH_UBSAN=ON build no longer fail due to passing null pointers as parameters that are declared to never be null, but plenty of other runtime errors remain.
This commit is contained in:
@ -584,8 +584,10 @@ struct xid_t {
|
||||
void set(long f, const char *g, long gl, const char *b, long bl)
|
||||
{
|
||||
formatID= f;
|
||||
memcpy(data, g, gtrid_length= gl);
|
||||
memcpy(data+gl, b, bqual_length= bl);
|
||||
if ((gtrid_length= gl))
|
||||
memcpy(data, g, gl);
|
||||
if ((bqual_length= bl))
|
||||
memcpy(data+gl, b, bl);
|
||||
}
|
||||
void set(ulonglong xid)
|
||||
{
|
||||
|
Reference in New Issue
Block a user