File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1126,7 +1126,10 @@ bool configt::set(const cmdlinet &cmdline)
1126
1126
if (cmdline.isset (" malloc-fail-assert" ))
1127
1127
ansi_c.malloc_failure_mode = ansi_c.malloc_failure_mode_assert_then_assume ;
1128
1128
1129
- ansi_c.malloc_may_fail = cmdline.isset (" malloc-may-fail" );
1129
+ if (cmdline.isset (" malloc-may-fail" ))
1130
+ {
1131
+ ansi_c.malloc_may_fail = true ;
1132
+ }
1130
1133
if (cmdline.isset (" no-malloc-fail" ))
1131
1134
{
1132
1135
ansi_c.malloc_may_fail = false ;
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ class configt
272
272
libt lib;
273
273
274
274
bool string_abstraction;
275
- bool malloc_may_fail = false ;
275
+ bool malloc_may_fail = true ;
276
276
277
277
enum malloc_failure_modet
278
278
{
@@ -281,7 +281,7 @@ class configt
281
281
malloc_failure_mode_assert_then_assume = 2
282
282
};
283
283
284
- malloc_failure_modet malloc_failure_mode = malloc_failure_mode_none ;
284
+ malloc_failure_modet malloc_failure_mode = malloc_failure_mode_return_null ;
285
285
286
286
static const std::size_t default_object_bits = 8;
287
287
You can’t perform that action at this time.
0 commit comments