Skip to content

AV Fix for OleDb#32207

Merged
saurabh500 merged 9 commits intodotnet:masterfrom
saurabh500:soln2fixAV
Feb 14, 2020
Merged

AV Fix for OleDb#32207
saurabh500 merged 9 commits intodotnet:masterfrom
saurabh500:soln2fixAV

Conversation

@saurabh500
Copy link
Contributor

@saurabh500 saurabh500 commented Feb 13, 2020

Fixes #981

The PR adapts from the PR at #32150 and maintains the same idea around changing the pack structure of the enum on X86 execution, just before sending it over to OleDb to minimize changes in the way the structure is modified.

The basic idea that the Packing of the structure needs to be changed, stems from the investigation done by @maryamariyan .

Note: This PR changes a single struct. The other structs which are packed with size 2, should be addressed too, and I will be taking care of them in subsequent PRs.

Testing: The tests were run on x86 build with the Microsoft.Jet.OLEDB.4.0 driver which is meant for 32 bit usage.

@jkotas
Copy link
Member

jkotas commented Feb 13, 2020

cc @maryamariyan

@saurabh500 saurabh500 marked this pull request as ready for review February 14, 2020 00:05
Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as a step towards fixing the larger problem. As discussed in the other PR, we will also need tests and fix the other structs with this problem.

@saurabh500
Copy link
Contributor Author

saurabh500 commented Feb 14, 2020

@jkotas, @maryamariyan @danmosemsft Is there an ongoing issue with macOS builds? They seem to be failing consistently (3 times I tried).
I could wait it out and re-run the build, however this change is Windows only and not even tested on MacOS, so it should be safe to merge.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AccessViolationException using System.Data.OleDb

3 participants