[CDRIVER-951] --enable-hardening doesn't do anything Created: 21/Oct/15  Updated: 19/Oct/16  Resolved: 21/Oct/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.2.0
Fix Version/s: 1.2.1

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

./configure --enable-hardening

checking whether C compiler accepts -fno-strict-overflow... no
checking whether C compiler accepts -D_FORTIFY_SOURCE=2... no
checking whether C compiler accepts -fstack-protector-all... no
checking whether C compiler accepts -fPIE... no
checking whether the linker accepts -Wl,-z,relro... no

configure:17327: checking whether C compiler accepts -fno-strict-overflow            
configure:17346: ./scripts/wrap-compiler-for-flag-check gcc -c  -Werror  -fno-strict-overflow  conftest.c >&5
./configure: line 1642: ./scripts/wrap-compiler-for-flag-check: No such file or directory

When its working it should say:

checking whether C compiler accepts -fno-strict-overflow... yes
checking whether C++ compiler accepts -fno-strict-overflow... yes
checking whether C compiler accepts -D_FORTIFY_SOURCE=2... yes
checking whether C++ compiler accepts -D_FORTIFY_SOURCE=2... yes
checking whether C compiler accepts -fstack-protector-all... yes
checking whether C++ compiler accepts -fstack-protector-all... yes
checking whether the linker accepts -fstack-protector-all... yes
checking whether C compiler accepts -Wstack-protector... yes
checking whether C++ compiler accepts -Wstack-protector... yes
checking whether C compiler accepts --param ssp-buffer-size=1... yes
checking whether C++ compiler accepts --param ssp-buffer-size=1... yes
...



 Comments   
Comment by Githook User [ 11/Jan/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-951: --enable-hardening doesn't do anything
Branch: 1.3.0-dev
https://github.com/mongodb/libbson/commit/a45a8798c34b12acf7704a2267d9a01028fc2d03

Comment by Githook User [ 22/Oct/15 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-951: --enable-hardening doesn't do anything
Branch: master
https://github.com/mongodb/libbson/commit/a45a8798c34b12acf7704a2267d9a01028fc2d03

Comment by Githook User [ 21/Oct/15 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-951: --enable-hardening doesn't do anything
Branch: r1.2
https://github.com/mongodb/libbson/commit/a45a8798c34b12acf7704a2267d9a01028fc2d03

Generated at Wed Feb 07 21:11:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.