1. line 45: it is using magic number 2. 2. line #1025: bbbuf : malloc return is not checked and could lead to core dump. 3. Static analyzer recommends common cleanup at the end instead of deeply nested if statements