-
Notifications
You must be signed in to change notification settings - Fork 426
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 in TDSWriter.writeString() #1531
Conversation
@micheljung could you add a test case to show that this fix will solve the issue? |
@peterbae I can but this will require generating a string that uses 1GiB of memory. Is that something you're ok with having in your unit tests? |
I was hoping we could host the file somewhere, since the standard procedure for pushing a fix to our repository requires some form of testing (to make sure the fix is intended). However, I think this fix is pretty straightforward, so I think we don't need a test case for this one. We will review and merge this soon. |
The file wouldn't need to be hosted, the string can be generated. My question is whether you want a unit test that consumes 1 GiB of heap just for a single string :) |
No, I think it would be ok without the test this time. |
/azp run Microsoft.mssql-jdbc.macOS |
No pipelines are associated with this pull request. |
Fixes GH-1530