fbd0f48232
- Build the crash extension. - Package the eppic code. - eppic-crash-INCDIR.patch: Use make variable INCDIR to find crash include files. - eppic-Fix-eppic_getnxtfct.patch: Fix name length condition in eppic_getnxtfct(). - Switch upstream branch to v5.0. - Update to commit e0a3b03 o Assorted bug fixes. OBS-URL: https://build.opensuse.org/request/show/1079222 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=28
26 lines
853 B
Diff
26 lines
853 B
Diff
From: Petr Tesarik <petr@tesarici.cz>
|
|
Date: Thu, 13 Apr 2023 11:54:25 +0200
|
|
Subject: Fix name length condition in eppic_getnxtfct()
|
|
Upstream: sent, https://github.com/lucchouina/eppic/pull/9
|
|
|
|
Comparisons like 'A > B > C' do not have their mathematical meaning.
|
|
Instead, 'MAX_SYMNAMELEN-5 > l' evaluates to 0 or 1, which is never
|
|
greater than 5, and the condition is always false.
|
|
---
|
|
libeppic/eppic_func.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libeppic/eppic_func.c b/libeppic/eppic_func.c
|
|
index 7912b34..b0a73c7 100644
|
|
--- a/libeppic/eppic_func.c
|
|
+++ b/libeppic/eppic_func.c
|
|
@@ -776,7 +776,7 @@ eppic_getnxtfct(void)
|
|
|
|
int l=strlen(nxtfunc->name);
|
|
|
|
- if(MAX_SYMNAMELEN-5 > l > 5 ) {
|
|
+ if(MAX_SYMNAMELEN-5 > l && l > 5 ) {
|
|
|
|
if(!strcmp(nxtfunc->name+l-5, "_help")) {
|
|
|