This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch v-0.27
in repository enlightenment.
View the commit online.
commit 805ea800b112c090e39c399bc48b37a873329ad1
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Mon Jan 27 19:32:54 2025 +0000
cpufreq - fix another "0" case where size of gad is 0
didn't think this would happen... fix it
@fix
---
src/modules/cpufreq/cpf.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/modules/cpufreq/cpf.c b/src/modules/cpufreq/cpf.c
index b886fde68..768f32e72 100644
--- a/src/modules/cpufreq/cpf.c
+++ b/src/modules/cpufreq/cpf.c
@@ -47,7 +47,7 @@ _render_colorbar_all(Cpf_Render *r, Cpf_Stats *c)
{
int i, y = 0, u;
- if (c->core_num <= 0) return;
+ if ((c->core_num <= 0) || (r->real_w <= 0) || (r->real_h <= 0)) return;
if ((r->real_w != r->w) || (r->real_h != (c->core_num * 2)))
{
free(r->pixels);
@@ -89,7 +89,7 @@ _render_colorbar_cpu_usage(Cpf_Render *r, Cpf_Stats *c)
{
int i, y = 0, u;
- if (c->core_num <= 0) return;
+ if ((c->core_num <= 0) || (r->real_w <= 0) || (r->real_h <= 0)) return;
if ((r->real_w != r->w) || (r->real_h != (c->core_num)))
{
free(r->pixels);
@@ -202,6 +202,7 @@ _thread_main(void *data EINA_UNUSED, Ecore_Thread *eth)
r = cpf_stat->rend[i] = calloc(1, sizeof(Cpf_Render));
if (!r) continue;
*r = _renders[i];
+ if ((r->real_w <= 0) || (r->real_h <= 0)) continue;
r->pixels = malloc(r->real_w * r->real_h * sizeof(int));
if (!r->pixels) continue;
for (y = 0; y < r->real_h; y++)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.