forked from Imagelibrary/rtems
monitor/mon-prmisc.c: Use puts() not fprintf()
CodeSonar flagged this as a case where the user could inject a format string and cause issues. Since we were not printing anything but a string, just switching to puts() rather than fprintf(stdout,...) was sufficient to make this code safer.
This commit is contained in:
committed by
Joel Sherrill
parent
8b9bc54b5a
commit
d4ec0a2d75
@@ -103,7 +103,7 @@ rtems_monitor_dump_name(rtems_id id)
|
||||
|
||||
rtems_object_get_name( id, sizeof(name_buffer), name_buffer );
|
||||
|
||||
return fprintf( stdout, name_buffer );
|
||||
return puts( name_buffer );
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user