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

pmap overwrites templateid #111

Open
pcbk opened this issue Nov 4, 2021 · 1 comment
Open

pmap overwrites templateid #111

pcbk opened this issue Nov 4, 2021 · 1 comment

Comments

@pcbk
Copy link

pcbk commented Nov 4, 2021

If pmap size is even number of bytes if is to small so it overwrites templateid

@pcbk
Copy link
Author

pcbk commented Nov 4, 2021

Fixed it locally with:
if (instruction != nullptr) {
current_pmap().init(&this->strm_, std::maxstd::size_t(instruction->segment_pmap_size(), 1) + 1); // Add one for templateid presence

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

No branches or pull requests

1 participant