-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Cjian/c4244 round 5 #13645
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
Merged
Merged
Cjian/c4244 round 5 #13645
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
1326879
Fix round 4
jchen351 dd75c10
Fix round 4
jchen351 b9ee135
Merge branch 'main' into cjian/C4244_round_4
jchen351 c10f638
Fix round 4
jchen351 ddb0dbf
changing int64_t l to size_t l
jchen351 5c8928b
Merge branch 'cjian/C4244_round_4' into cjian/C4244_round_5
jchen351 6ed46c0
convert num_blocks as well
jchen351 908904d
Merge branch 'cjian/C4244_round_4' into cjian/C4244_round_5
jchen351 542f41f
Fix round 5
jchen351 c8bda67
Merge branch 'main' into cjian/C4244_round_5
jchen351 4cd3307
Adding Safeint header file
jchen351 e61d7de
Rolling back some axis to int64
jchen351 463f072
Fixing some typos
jchen351 9f2d0b3
Merge branch 'main' into cjian/C4244_round_5
jchen351 dfd4b77
Changing size_t back to int64_t
jchen351 2438f66
change safeint wrapping
jchen351 5154ff9
Merge branch 'main' into cjian/C4244_round_5
jchen351 d36f6a6
Changing to ptrdiff_t
jchen351 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
general comment - in these expressions with multiple operations, I think we need to be careful about where to add SafeInt to make sure all operations are checked.
e.g., in this case,
SafeInt<size_t>(row_num) * output_size_ + ngram_indexes_[ngram_id]would ensure that the multiplication is also checked.https://github.com/dcleblanc/SafeInt/blob/d0178e3c3128b57041d6b0676028ef99c95b4f13/helpfile.md?plain=1#L545-L549