Skip to content

Conversation

@protoplas
Copy link

I ran into a couple of segmentation faults. Re-ran the packet dumps with gdb and discovered that the segmentation faults were due to invalid memory accesses at the two places I've fixed in this PR.

  1. getLayerOfType<UdpLayer> returns null sometimes
  2. The userLen fetched from MessageExtractor is sometimes 0, resulting in it becoming negative a few lines later and then resize fails

It's puzzling to me why this is happening, but the fix works for me.

@protoplas protoplas force-pushed the minor branch 2 times, most recently from e481ed1 to 9ca2ad1 Compare April 13, 2020 16:09
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.

1 participant