Bug 59819

Summary: Potentially uninitialized variable in util_expr_eval.c core_expr_lookup()
Product: Apache httpd-2 Reporter: Marc Stern <marc.stern>
Component: CoreAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED FIXED    
Severity: normal CC: szg0000
Priority: P2    
Version: 2.4.23   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Marc Stern 2016-07-07 11:32:47 UTC
In util_expr_eval.c core_expr_lookup(), the variable 'prov' may be uninitialized on line 1721.

1. There could be a real problem
2. In case the flows ensure that it is initialized, it should be explicit because a modification could break this
3. It generates a warning on some compilers
4. Safe compilers options may prevent the build (ex: /SDL in Visual C++)
Comment 1 Christophe JAILLET 2018-05-26 16:54:58 UTC
1. No real problem. Either 'prov' is set to something, either we assert and then abort.
2. Agreed (because of 3. and 4.). Fixed in r1832317

Thanks for the report.