Skip to content

Fix dereference of uninitialized m_pVIA pointer - #228

Open
jonnyh64 wants to merge 1 commit into
pi1541:masterfrom
jonnyh64:master
Open

Fix dereference of uninitialized m_pVIA pointer#228
jonnyh64 wants to merge 1 commit into
pi1541:masterfrom
jonnyh64:master

Conversation

@jonnyh64

Copy link
Copy Markdown

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