Page 23 - C-Language
P. 23

Examples                                                                                           387
            Dereferencing a null pointer                                                                     387

            Modifying any object more than once between two sequence points                                  387

            Missing return statement in value returning function                                             388

            Signed integer overflow                                                                          389

            Use of an uninitialized variable                                                                 390

            Dereferencing a pointer to variable beyond its lifetime                                          391

            Division by zero                                                                                 392

            Accessing memory beyond allocated chunk                                                          392

            Copying overlapping memory                                                                       392
            Reading an uninitialized object that is not backed by memory                                     393

            Data race                                                                                        394

            Read value of pointer that was freed                                                             395

            Modify string literal                                                                            395

            Freeing memory twice                                                                             396

            Using incorrect format specifier in printf                                                       396

            Conversion between pointer types produces incorrectly aligned result                             397
            Addition or subtraction of pointer not properly bounded                                          397

            Modifying a const variable using a pointer                                                       398

            Passing a null pointer to printf %s conversion                                                   398

            Inconsistent linkage of identifiers                                                              399

            Using fflush on an input stream                                                                  400

            Bit shifting using negative counts or beyond the width of the type                               400

            Modifying the string returned by getenv, strerror, and setlocale functions                       401

            Returning from a function that's declared with `_Noreturn` or `noreturn` function specifie       401

        Chapter 60: Unions                                                                                  403

          Examples                                                                                           403

            Difference between struct and union                                                              403

            Using unions to reinterpret values                                                               403

            Writing to one union member and reading from another                                             404
        Chapter 61: Valgrind                                                                                406


          Syntax                                                                                             406

          Remarks                                                                                            406
   18   19   20   21   22   23   24   25   26   27   28