bugmake - Bugs: bug #39376, a logical bug that in signame.c


bug #39376: a logical bug that in signame.c

Submitted by:  zz <matrixhannibal>
Submitted on:  Mon Jul 1 04:58:22 2013  
Severity: 3 - NormalItem Group: Bug
Status: DuplicatePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 4.0Operating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Sun Jul 21 21:53:14 2013, comment #1:

Thanks; this was found and fixed due to bug #39158

Paul D. Smith <psmith>
Project Administrator
Mon Jul 1 04:58:22 2013, original submission:

From 1b1fe68eb0fd39601061b630592c57e4a6bac081 Mon Sep 17 00:00:00 2001
From: zz <matrixhannibal@gmail.com>
Date: Mon, 1 Jul 2013 11:54:52 +0800
Subject: [PATCH] a logical bug fired

Signed-off-by: zzl <cati_zzl@163.com>
signame.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/signame.c b/signame.c
index c8e45da..59dc949 100644
--- a/signame.c
+++ b/signame.c
@@ -244,7 +244,7 @@ strsignal (int sig)
# endif

- if (sig > 0 || sig < NSIG)
+ if (sig > 0 && sig < NSIG)
return (char *) sys_siglist[sig];

sprintf (buf, "Signal %d", sig);

zz <matrixhannibal>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by psmith (Posted a comment)
  • -unavailable- added by matrixhannibal (Submitted the item)
  • -unavailable- added by matrixhannibal (a logical bug fired)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Jul 21 21:53:14 2013psmithStatusNone=>Duplicate
    Mon Jul 1 04:58:22 2013matrixhannibalCarbon-Copy-=>Added matrixhannibal

    Back to the top

    Powered by Savane 3.1-cleanup1