From bf519785fe30b270cb6b28127971bada68349dd3 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 1 Apr 2021 15:10:47 +0900 Subject: [PATCH] evas vg: check return value as same to other usages. @fix coverity issue Change-Id: I020a6501c293488855a81a0392032f354a3c71b3 --- src/lib/evas/canvas/evas_vg_path_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/canvas/evas_vg_path_helper.h b/src/lib/evas/canvas/evas_vg_path_helper.h index 320464b..260863b 100644 --- a/src/lib/evas/canvas/evas_vg_path_helper.h +++ b/src/lib/evas/canvas/evas_vg_path_helper.h @@ -574,7 +574,7 @@ _process_command(Shape_Svg_Path *svg_path, char c, double *pts, c2y = ey + var.bcp * (var.sin_phi_rx * sin_theta2 - var.cos_phi_ry * cos_theta2); - _svg_path_grow(svg_path, 3); + if (!_svg_path_grow(svg_path, 3)) break; svg_path->pts[svg_path->pts_cnt-3].x = c1x; svg_path->pts[svg_path->pts_cnt-3].y = c1y; svg_path->pts[svg_path->pts_cnt-2].x = c2x; -- 2.7.4