Skip to content

Instantly share code, notes, and snippets.

@simonsj
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save simonsj/f4cbf4aad0269a32cd2d to your computer and use it in GitHub Desktop.

Select an option

Save simonsj/f4cbf4aad0269a32cd2d to your computer and use it in GitHub Desktop.
Quick Audit Notes for https://github.com/grobian/carbon-c-relay (3/23/2015)

Quick Audit Notes for https://github.com/grobian/carbon-c-relay Jon Simons 3/23/2015

--

Looks mostly okay. There are a number of unchecked mallocs and strdups throughout but it's not clear whether with our memory profiles in production these spots would actually result in real-life problems. We can fix them. There was at least one spot in the code using usleep as a pre-cleanup step for some of its state: that spot is likely incorrect code.

--

PRs and Issues don't seem to show any outright red flags from what I can tell:

Open Issues (worth watching and further vetting):

Open PRs (just one):

Open Issues (minor):

--

Source: 5700 LoC; Apache license. Skimmed over looking for obvious superficial problems and none seemed too drastic. There is some gnarly parsing code but perhaps using it would not be too bad assuming we have repro cases if/when we hit bugs. I'd be most cautious about the regex routing engine. I'd probably ditch select just to never have to think about hitting FD_SETSIZE issues but I'm not sure if that would be a real possibility in this context.

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