Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Dangling pointer in setManufacturerData #61

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

Closed

Conversation

Copy link

@thekunalsaini thekunalsaini commented Mar 20, 2020

This code sets the member _manufacturerData to an array on the stack:
this causes the crash.

SOLUTION:-
Actually, We can pass it by reference or make an array global.

@facchinm #56 issue mention this same 10 days back, no merge request is made by the originator of #56 issue so that is why I have make this request.
Thank you

This code sets the member _manufacturerData to an array on the stack:
this causes the crash.
SOLUTION:-
Actually, We can pass it by reference or make an array global.
Copy link
Contributor

Hi @thekunalsaini ,
did you actually test this code? Because it's not going to work... The issue is about tmpManufacturerData (a local array) being used globally so after the function scope is over the data is not there anymore.

@facchinm facchinm self-requested a review March 20, 2020 08:49
Copy link
Contributor

@facchinm facchinm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not going to work

Copy link
Author

@facchinm making global array will work.

Copy link
Contributor

Replaced by #63

Copy link
Author

@facchinm please tell reason of closing request.

Copy link
Contributor

@thekunalsaini because it didn't fix the issue, while #63 does 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@facchinm facchinm facchinm requested changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /