Commit f3050ff
HG Core: prevent hg_core_init() segv on version check error
Go to "error_free" instead of "error" in the HG_CHECK_SUBSYS_ERROR()
check for newer versions to avoid a core dump. hg_core_class is NULL
(have not called calloc yet) and "error" assumes it is not. Issue
found by Sheng Jiang.1 parent 0a7756d commit f3050ff
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1210 | 1210 | | |
1211 | 1211 | | |
1212 | 1212 | | |
1213 | | - | |
| 1213 | + | |
| 1214 | + | |
1214 | 1215 | | |
1215 | 1216 | | |
1216 | 1217 | | |
| |||
0 commit comments