Skip to content

Fix empty attribute crash in DataChannelRereader2 #775

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

Merged

Conversation

JakubVanek
Copy link
Contributor

@JakubVanek JakubVanek commented Dec 30, 2020

This PR intends to fix the issue described in #765 (comment) for DCR2. DCR1 should already be fixed from #778.

@JakubVanek JakubVanek force-pushed the sysfs_perf2_threadsafe branch 2 times, most recently from 3c3545f to 1a18470 Compare December 30, 2020 16:35
@JakubVanek
Copy link
Contributor Author

NACK to ThreadLocal<>

@JakubVanek JakubVanek force-pushed the sysfs_perf2_threadsafe branch from 1a18470 to 6ddcaf9 Compare December 31, 2020 02:24
@JakubVanek JakubVanek force-pushed the sysfs_perf2_threadsafe branch from 6ddcaf9 to f356d8b Compare December 31, 2020 17:45
@JakubVanek JakubVanek changed the title Make DataChannelRereader thread-safe without locks Fix empty attribute crash in DataChannelRereader2 Dec 31, 2020
throw new IOException("Premature end of file ");
}
} while (n <= 0);
byteBuffer.clear();
Copy link
Member

Choose a reason for hiding this comment

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

@JakubVanek, restore the original code. Allow people develop the ideas

Copy link
Contributor Author

@JakubVanek JakubVanek Jan 3, 2021

Choose a reason for hiding this comment

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

this seems to be already fixed (i usually rewrite git history using git rebase -i to have clean commit sequences)

@jabrena jabrena merged commit 7115d89 into ev3dev-lang-java:sysfs_perf2 Jan 3, 2021
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.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy