Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2021-04-08 12:33:53 +0300
committerGitHub <noreply@github.com>2021-04-08 12:33:53 +0300
commite8f5c7037b2e2888a20d507208798f7f2d7ba97a (patch)
treed3e82549ce6f4b3f9df93c9f25c478a80c7ddb50 /src/mumble/mumble_bg.ts
parentcd190fd313286ea07b44663ed143f44d967bba7c (diff)
parent44d8d92fab23442865d1fd12b826464da8b4250d (diff)
Merge PR #4915: FIX(server): Fix undefined behavior on Linux hosts
The fields of the rlimit struct were assumed to be of type long int when printing via the qWarning function. This seems to be correct on e.g. Ubuntu but at least on Alpine Linux this is not true. In that case the wrong format specifiers are being used for printing these values, which causes undefined behavior. The fix is to always copy the values into variables of type long long unsigned int and then printing these. The code also adds an assertion making sure that within this copy operation the values won't overflow the variable's size. Fixes #4897
Diffstat (limited to 'src/mumble/mumble_bg.ts')
0 files changed, 0 insertions, 0 deletions