Skip to content

[windows] Fix stack corruption when using ICoreWebView2HttpHeadersCollectionIterator - #1589

Merged
leaanthony merged 1 commit into
wailsapp:masterfrom
stffabi:bugfix/stack-corruption-windows
Jul 18, 2022
Merged

leaanthony merged 1 commit into
wailsapp:masterfrom
stffabi:bugfix/stack-corruption-windows

Conversation

@stffabi

@stffabi stffabi commented Jul 18, 2022 •

Copy link
Copy Markdown
Contributor

The API expects a BOOL * with typedef int BOOL therefore
we need to use a int32 on the stack.

Fixes #1584

…lectionIterator

The API expects a `BOOL *` with `typedef int BOOL` therefore
we need to use a `int32` on the stack.
@stffabi
stffabi requested a review from leaanthony July 18, 2022 07:46
@stffabi stffabi mentioned this pull request Jul 18, 2022
@leaanthony
leaanthony merged commit 1247c8a into wailsapp:master Jul 18, 2022
@leaanthony

Copy link
Copy Markdown
Member

Awesome job finding this 👏👏👏

@stffabi
stffabi deleted the bugfix/stack-corruption-windows branch July 18, 2022 09:04
@stffabi

stffabi commented Jul 18, 2022

Copy link
Copy Markdown
Contributor Author

Thanks for merging.

leaanthony added a commit that referenced this pull request Jul 21, 2022
* Add troubleshooting for `Not Found` error (#1586)

Issues with Vite's optimizer

* Remove usage of unsafe.Pointer in winc (#1556)

* Remove usage of unsafe.Pointer

* [windows] Remove MakeIntResource and add overloads for Load functions

* Fix `EnumProc` race condition.

* Refactor `EnumDisplayMonitors` to use `unsafe.Pointer` instead of `uintptr`

Co-authored-by: stffabi <stffabi@users.noreply.github.com>

* [windows] Fix stack corruption when using ICoreWebView2HttpHeadersCollectionIterator (#1589)

The API expects a `BOOL *` with `typedef int BOOL` therefore
we need to use a `int32` on the stack.

* Docs/better homepage (#1591)

* Better carousel width

* Learn more button

* Learn more button

* Fix button/width

* Update introduction

* Fix outline colour

* remove custom css

* remove default css

* use secondary button

* Update sponsors. Improve website for mobile.

* v2.0.0-beta.39

* fix docs again

(cherry picked from commit 0a9ae0d)

* Fix docs for good

* Docs FTLOG

* Fix docs again!

* Fix Varly link

* Fix Varly link

* Update example for macOS Menu (#1600)

* Update example for macOS compatibility

Reference #1588

* Add comments, remove duplicates

* Add compatibility for Go1.17 (#1605)

* v2.0.0-beta.39.2

* [v2] Fix plain template (#1609)

* [template] Add missing main.go file to plain template

* [dev] If wails could not be find in go.mod output a gracefull error message

* Install dev dependencies before starting dev mode (#1615)

* Add Show() and Hide() to runtime to show/hide application (#1599)

* Add Show() and Hide() to runtime to show/hide application

* Fix devserver

* Update API docs

* Fix container size (#1616)

* Update Crowdin configuration file

* Update Crowdin configuration file

* Update Crowdin configuration file

* Bump terser from 4.8.0 to 4.8.1 in /runtime/js (#1625)

Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump terser from 5.12.0 to 5.14.2 in /website (#1627)

Bumps [terser](https://github.com/terser/terser) from 5.12.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Co-authored-by: Antonio <acheong@student.dalat.org>
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

win10 crash

2 participants