Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix integer overflow issue in the temp rdb file naming #702

Merged

Conversation

karthyuom
Copy link
Contributor

@karthyuom karthyuom commented Jul 27, 2023

This is to fix a bug related to integer overflow issue in the temp rdb file naming, especially in the current time (in milliseconds) portion in the file name.

It is possible that the temp rdb file name (i.e., temp-<timestamp>.<pid>.rdb) might have incorrect (possibly negative) timestamp value. Therefore, it is preferred to change the data type to long long to be at least 64 bits in length.

An example current time in milliseconds = 1690471817044.

@JohnSully / @msotheeswaran-sc could you please review and merge? thanks.

@paulmchen @hengku @yzhao244

@msotheeswaran-sc msotheeswaran-sc merged commit 5b12251 into Snapchat:main Sep 29, 2023
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants