Raphael Kubo da Costa <rakuco@freebsd.org>
Jérôme Pinot <ngc891@gmail.com>
Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
+Patryk Kaczmarek <patryk.k@samsung.com>
2012-08-30 Carsten Haitzler (The Rasterman)
1.7.0 release
+
+2012-09-12 Patryk Kaczmarek <patryk.k@samsung.com>
+
+ * Add EINA_SAFETY checks for proper function arguments.
+ * Add check if given arguments (distance and coordinates) in eina_tiler
+ and eina_rectangle are not below zero
+ * Documentation for eina list specified and eina stringshare fixed
* Add backtrace support to Eina_Log, use EINA_LOG_BACKTRACE to enable it.
* Add an helper to iterate over line in a mapped file.
* Add EINA_SENTINEL to protect variadic functions
+ * Add EINA_SAFETY checks for proper function arguments.
+ * Add check if given arguments (distance and coordinates) in eina_tiler
+ and eina_rectangle are not below zero
Fixes:
* Add missing files in the tarball.
* Implement eina_file_map_lines() on Windows.
* Handle NULL in all eina_*_free function.
* eina_log_console_color_set()
+ * Documentation for eina list specified and eina stringshare fixed.
+ * eina_convert_atofp wrong return value if fp is NULL.
Removal:
* configure options: --disable-posix-threads, --disable-win32-threads,
* smallest one to be head of the returned list. It will continue this process
* for all entry of both list.
*
- * Both left and right do not exist anymore after the merge.
- * If @p func is @c NULL, it will return @c NULL.
+ * Both left and right lists are not vailid anymore after the merge and should
+ * not be used. If @p func is @c NULL, it will return @c NULL.
*
* Example:
* @code
* @brief Note that the given string @b must be shared.
*
* @param str the shared string to know the length. It is safe to
- * give @c NULL, in that case @c -1 is returned.
+ * give @c NULL, in that case @c 0 is returned.
* @return The length of a shared string.
*
* This function is a cheap way to known the length of a shared
{
Eina_Accessor_List *ac;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(list, NULL);
+
eina_error_set(0);
ac = calloc(1, sizeof (Eina_Accessor_List));
if (!ac)
{
size_t tmp;
+ EINA_MAGIC_CHECK_QUADTREE_ITEM(object);
+
tmp = object->quad->index++;
if (object->index == tmp)
return;
{
Eina_Rectangle_Pool *new;
+ if ((w <= 0) || (h <= 0))
+ return NULL;
+
new = malloc(sizeof (Eina_Rectangle_Pool));
if (!new)
return NULL;
char *s2, *d;
const char *s;
+ if (!str)
+ return NULL;
+
s2 = malloc((strlen(str) * 2) + 1);
if (!s2)
return NULL;
{
Eina_Tiler *t;
+ if ((w <= 0) || (h <= 0))
+ return NULL;
+
t = calloc(1, sizeof(Eina_Tiler));
t->area.w = w;
t->area.h = h;
Eina_Rectangle tmp;
EINA_MAGIC_CHECK_TILER(t, EINA_FALSE);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(r, EINA_FALSE);
+
if ((r->w <= 0) || (r->h <= 0))
return EINA_FALSE;
Eina_Rectangle tmp;
EINA_MAGIC_CHECK_TILER(t);
+ EINA_SAFETY_ON_NULL_RETURN(r);
+
if ((r->w <= 0) || (r->h <= 0))
return;
{
Eina_Tile_Grid_Slicer_Iterator *it;
+ if ((x < 0) || (y < 0) || (w <= 0) || (h <= 0) ||
+ (tile_w <= 0) || (tile_h <= 0))
+ return NULL;
+
it = calloc(1, sizeof(*it));
if (!it)
{