Bug 59819 - Potentially uninitialized variable in util_expr_eval.c core_expr_lookup()
Summary: Potentially uninitialized variable in util_expr_eval.c core_expr_lookup()
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.23
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-07 11:32 UTC by Marc Stern
Modified: 2018-05-26 16:55 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.