-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Running this tutorial when using clang and 3c built from commit correctcomputation/checkedc-clang@2a0df40 yields some differences:
-
Instead of running into trouble with
bignum_to_stringin tests likegolden.c, first, as it is presented in the README, the problem withbignum_from_string's use of&str[i]inbn.candbn.harises first. You can fix it just like the README says, though the original inferred type is not quite what is shown. When you do the fix, then the problems withbignum_to_stringshow up, and you fix those as prescribed. -
This updated Checked C
clangdoes not requireprintf,snprintf, etc. to be put in an_Uncheckedblock. As such, there are fewer unchecked blocks needed than are prescribed. Basically, onlysscanfand the user-addedbignum_from_string_using_strlenneed to be in an unchecked block.