Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
594b80f4
Commit
594b80f4
authored
5 months ago
by
Basile Desloges
Committed by
Andre Maroneze
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[libc] Add secure_getenv
parent
427ca8a0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
share/libc/stdlib.h
+11
-1
11 additions, 1 deletion
share/libc/stdlib.h
with
11 additions
and
1 deletion
share/libc/stdlib.h
+
11
−
1
View file @
594b80f4
...
...
@@ -416,7 +416,7 @@ extern long int jrand48 (unsigned short xsubi[3]);
complete behaviors;
disjoint behaviors; */
extern
void
*
calloc
(
size_t
nmemb
,
size_t
size
);
/*@ allocates \result;
@ assigns __fc_heap_status \from size, __fc_heap_status;
@ assigns \result \from indirect:size, indirect:__fc_heap_status;
...
...
@@ -562,6 +562,16 @@ extern char *__fc_env[ARG_MAX];
*/
extern
char
*
getenv
(
const
char
*
name
);
// Non-POSIX, GNU extension
/*@
requires valid_name: valid_read_string(name);
assigns \result \from __fc_env[0..], indirect:name,
indirect:name[0 .. strlen(name)];
ensures null_or_valid_result:
\result == \null || (\valid(\result) && valid_read_string(\result));
*/
extern
char
*
secure_getenv
(
const
char
*
name
);
/*@
requires valid_string: valid_read_string(string);
assigns __fc_env[0..] \from __fc_env[0..], string;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment