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

Fix the way /proc/net/unix is being parsed #589

Merged
merged 1 commit into from
Feb 22, 2018

Conversation

aadsm
Copy link
Contributor

@aadsm aadsm commented Feb 22, 2018

dumpapp stopped working for me because /proc/net/unix has two spaces to separate state from inode when the inode length is less than the maximum inode length (123 vs 1234).

E.g.:

00000000: 00000002 00000000 00010000 0001 01 76292 /dev/socket/cryptd
00000000: 00000002 00000000 00010000 0001 01  3836 @stetho_com.facebook.wakizashi_devtools_remote

We should be parsing this with \s+ and not a simple space since the output date is a table that is formatted to look like columns in the print out.

I tested this by running dumpapp in a situation like the one mentioned above.

Verified

This commit was signed with the committer’s verified signature. The key has expired.
dtzWill Will Dietz
dumpapp stopped working for me because /proc/net/unix has two spaces to separate state from inode when the inode length is less than the maximum inode length (123 vs 1234).

E.g.:

```
00000000: 00000002 00000000 00010000 0001 01 76292 /dev/socket/cryptd
00000000: 00000002 00000000 00010000 0001 01  3836 @stetho_com.facebook.wakizashi_devtools_remote
```

We should be parsing this with `\s+` and not a simple space since the output date is a table that is formatted to look like columns in the print out.
@longinoa longinoa self-assigned this Feb 22, 2018
@longinoa longinoa merged commit 22ea395 into facebook:master Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants