Print this page
12724 update smatch to 0.6.1-rc1-il-5

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/smatch.c
          +++ new/usr/src/tools/smatch/src/smatch.c
↓ open down ↓ 332 lines elided ↑ open up ↑
 333  333                  help();
 334  334  
 335  335          /* this gets set back to zero when we parse the first function */
 336  336          final_pass = 1;
 337  337  
 338  338          bin_dir = get_bin_dir(argv[0]);
 339  339          data_dir = get_data_dir(argv[0]);
 340  340  
 341  341          allocate_hook_memory();
 342  342          allocate_dynamic_states_array(num_checks);
      343 +        allocate_tracker_array(num_checks);
 343  344          create_function_hook_hash();
 344  345          open_smatch_db(option_db_file);
 345  346          sparse_initialize(argc, argv, &filelist);
 346  347          alloc_valid_ptr_rl();
 347  348  
 348  349          for (i = 1; i < ARRAY_SIZE(reg_funcs); i++) {
 349  350                  func = reg_funcs[i].func;
 350  351                  /* The script IDs start at 1.
 351  352                     0 is used for internal stuff. */
 352  353                  if (!option_enable || reg_funcs[i].enabled == 1 ||
↓ open down ↓ 16 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX