Hi,

Please find in attach a patch that adds support for the malloc and alloc_size function attributes. The malloc attribute specifies that a function behaves like malloc (i.e., it returns a fresh pointer to an allocated block). It's mainly used for optimization purposes. The alloc_size attribute specifies that a given function returns a buffer of the size given in the specified argument. It's used to generate warnings for e.g. buffer overflows. Clang will also take advantage of this when instrumenting code for run-time buffer overflow detection.

Nuno
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to