Skip to content

Fix/lround overflow#91

Merged
gaborcsardi merged 5 commits intomasterfrom
fix/lround-overflow
May 13, 2019
Merged

Fix/lround overflow#91
gaborcsardi merged 5 commits intomasterfrom
fix/lround-overflow

Conversation

@jimhester
Copy link
Member

Previously progress would not check the errno for a possible overflow after calling lround(), so if the rate was very high you would get negative numbers in bytes and a NaN after taking the log, which would segfault. This was the cause of tidyverse/vroom#103.

I think this was only manifesting itself on Windows because long is still 32 bit there, so it was more likely to occur, but it could I guess also happen on systems with 64 bit log if the rate was high enough I guess.

My previous PR also broke backwards compatibility, so I added a commit to fix that.

Fixes tidyverse/vroom#103

jimhester added 2 commits May 10, 2019 12:26
Previously overflow was not checked, so lround could return a negative
value if the rate was too fast, which would then segfault later on.
Fixes b20cede breaking backwards compatibility
@jimhester jimhester requested a review from gaborcsardi May 10, 2019 17:04
@gaborcsardi
Copy link
Member

Thanks!

@gaborcsardi gaborcsardi merged commit 298231d into master May 13, 2019
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.

R Studio Crashing When Reading csv

2 participants