-
Notifications
You must be signed in to change notification settings - Fork 801
Pubmatic: Fix Shared Memory Overwriting #1759
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
Conversation
Please contact PubMatic using their bidder info email address to inform them of this change. |
@sachin-pubmatic, When it comes to adapters' source code improvements, we usually wait a week for owners to come back to us. If we get no feedback, we will go ahead to review and merge this pull request ourselves. We'd love to hear your take on this issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We received approval via email for this change. |
I just downloaded and tested the latest version of Prebid server (0.155) and noticed that with that version Pubmatic is starting to respond with unexpected banner sizes. For instance, a request that requests only 160x600 as size, Pubmatic may respond with 600x600. If I use an earlier version of Prebid Server (sorry, I can currently only test 0.139.1 easily) this problem does not occur. But after looking at what has changed in the pubmatic adapter, this looks like something that maybe is causing this. I have no idea why though, and I may be completely off. I will compile earlier versions and test until the problem goes away to see exactly in which version it happens. |
The issue is NOT present in 0.152.0. Sorry for not being too helpful in locating the source of the issue, GO is not my first language, but I will make an honest try. EDIT: I realize this may have to do with the update of the OpenRTB library. I will try 0.153 as well. EDIT 2: The problem is pinpointed to 0.153.0 -> This is the version where it starts to fail. So with this PR there seems to be a problem at least with the Pubmatic Adapter. |
Copy of reference field Banner needed to be made inside
adapters/pubmatic/pubmatic.go
in order to avoid a data race on shared memory. Authors of source code should be notified and encourage to make any changes to this PR if they disagree with the proposed approach.