mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 20:43:02 +01:00
Fixed possible buffer overflow on system privileges lookup during user mapping (#8126)
This commit is contained in:
parent
9cb1165b8b
commit
aa372c92ac
@ -1162,7 +1162,11 @@ private:
|
||||
g |= l;
|
||||
}
|
||||
|
||||
ULONG gg = 0; g.store(&gg);
|
||||
FB_UINT64 gg = 0;
|
||||
static_assert(sizeof(gg) >= g.BYTES_COUNT,
|
||||
"The value for storing system privileges is too small");
|
||||
|
||||
g.store(&gg);
|
||||
MAP_DEBUG(fprintf(stderr, "poprole %s 0x%x\n", key.c_str(), gg));
|
||||
put(key, g);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user