Click on image to see enlargment
This program prints the least flower (in alphabetic order) from a range of indices. The programmer thought he had taken care of things well enough to avoid the dreaded Illegal Operation but overlooked one little thing.
bug802.cpp lint Output
--- Module: bug802.cpp _ strcat( flower, s ); bug802.cpp(15) : Info 802: Conceivably passing a null pointer to function 'strcat(char *, const char *)', arg. no. 2 [Reference: file bug802.cpp: line 9]
Reference Manual Explanation
802 Conceivably passing a null pointer to function 'Symbol', Context Reference -- A NULL pointer is conceivably being passed to a function identified by Symbol. The argument in question is given by Context. The function is either a library function designed not to receive a NULL pointer or a user function dubbed so via the option -function.
If you have comments or questions about this bug, please post them to our Discussion Forum
Previous Bug - Bug #1561 - April 2004