Files
redis/src
Binbin 62ac1ab007 Fix crash when overcommit_memory is inaccessible (#10848)
When `/proc/sys/vm/overcommit_memory` is inaccessible, fp is NULL.
`checkOvercommit` will return -1 without setting err_msg, and then
the err_msg is used to print the log, crash the server.
Set the err_msg variables to Null when declaring it, seems safer.

And the overcommit_memory error log will print two "WARNING",
like `WARNING WARNING overcommit_memory is set to 0!`, this PR
also removes the second WARNING in `checkOvercommit`.

Reported in #10846. Fixes #10846. Introduced in #10636 (7.0.1)
2022-06-11 22:27:44 +03:00
..
2022-06-06 08:17:18 +03:00
2022-04-17 15:43:22 +03:00
2020-04-24 17:11:21 -07:00
2022-06-06 11:39:23 +03:00
2022-03-09 13:58:23 +02:00
2021-12-19 17:52:23 +02:00
2022-01-06 13:39:38 +02:00
2022-03-09 13:58:23 +02:00
2020-05-05 23:35:08 -04:00
2019-11-19 17:23:47 +08:00
2022-04-17 15:43:22 +03:00
2022-05-29 08:51:33 +03:00
2022-03-09 13:58:23 +02:00
2019-10-02 11:30:20 +02:00
2021-07-10 10:04:54 -05:00