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

C library modelling: fgets, getopt, vasprintf #1167

Merged
merged 2 commits into from
Aug 4, 2017

Conversation

tautschnig
Copy link
Collaborator

Even though this includes minor bug fixes I'd rather consider these enhancements - not adding a "bugfix" label.

const struct option *longopts, int *longindex)
{
(void)*longopts;
(void)longindex;
Copy link
Member

Choose a reason for hiding this comment

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

Maybe comment on the purpose of these...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

fgets may (and certainly does when successful) change the contents of the buffer
passed in. Building a regression test showed further deficiences in the stdio
library model: 1) MacOS uses _fdopen; 2) fclose uses free from stdlib.h.
Licensing: I had contributed these myself to the SV-COMP benchmarks.
@kroening kroening merged commit df81a9c into diffblue:master Aug 4, 2017
@tautschnig tautschnig deleted the c-library-ext branch August 4, 2017 06:23
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.

3 participants