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

deque,vector: Fix overflow in test #99

Merged
merged 1 commit into from
Feb 12, 2020
Merged

Conversation

stotko
Copy link
Owner

@stotko stotko commented Feb 12, 2020

The unit tests of the non-const operator[] and at() functions for both deque and vector fail due to an overflow which has been revealed when using 64-bit indices. Fix this issue by using a smaller container size such that the transformed values fit into an int.

@stotko stotko added the bug label Feb 12, 2020
@stotko stotko added this to the 1.3.0 milestone Feb 12, 2020
@codecov
Copy link

codecov bot commented Feb 12, 2020

Codecov Report

Merging #99 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #99   +/-   ##
=======================================
  Coverage   97.83%   97.83%           
=======================================
  Files          27       27           
  Lines        1613     1613           
=======================================
  Hits         1578     1578           
  Misses         35       35

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0c62051...819c56a. Read the comment docs.

@stotko stotko merged commit f401605 into master Feb 12, 2020
@stotko stotko deleted the deque_vector_test_overflow branch February 12, 2020 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant