Modify ↓
Opened 10 years ago
Closed 10 years ago
#341 closed enhancement (fixed)
format-security problem
Reported by: | thomas.moschny@… | Owned by: | bas |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | email2trac | Version: | |
Keywords: | Cc: |
Description
When run_email2trac.c is compiled with -Werror=format-security, this error is thrown:
gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -o run_email2trac run_email2trac.c run_email2trac.c: In function 'email2trac_log': run_email2trac.c:59:5: error: format not a string literal and no format arguments [-Werror=format-security] syslog(LOG_ERR, message); ^
The attached patch fixes this.
Attachments (1)
Change History (3)
Changed 10 years ago by thomas.moschny@…
comment:1 Changed 10 years ago by bas
- Status changed from new to assigned
- Type changed from defect to enhancement
comment:2 Changed 10 years ago by bas
- Resolution set to fixed
- Status changed from assigned to closed
In 654:
Note: See
TracTickets for help on using
tickets.
Thanks for the patch and catching this error. I will apply it and release an new version.