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

Fix dereference of uninitialized m_pVIA pointer #228

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonnyh64
Copy link

On startup (before kernel_main), the global object pi1541 causes the Pi1541 constructor being called, which calls the Drive constructor, which calls Drive::Reset, which calls m_pVIA->InputCA1 with m_pVIA is still uninitialized.

Fix this by passing the pVIA object to Drive via its constructor already.

On startup (before kernel_main), the global object pi1541 causes the Pi1541 constructor being called, which calls the Drive constructor, which calls Drive::Reset, which calls m_pVIA->InputCA1 with m_pVIA is still uninitialized.

Fix this by passing the pVIA object to Drive via its constructor already.
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.

1 participant