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

 
 

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

Submitter:  zz <matrixhannibal>
Submitted:  Mon 01 Jul 2013 04:58:22 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  4.0 Operating System:  Any
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 21 Jul 2013 09:53:14 PM UTC, comment #1: 

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

Paul D. Smith <psmith>
Group administrator
Mon 01 Jul 2013 04:58:22 AM UTC, 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
 #endif
 
-  if (sig > 0 || sig < NSIG)
+  if (sig > 0 && sig < NSIG)
     return (char *) sys_siglist[sig];
 
   sprintf (buf, "Signal %d", sig);
--
1.8.1.2

zz <matrixhannibal>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-07-21 psmith StatusNone Duplicate
        Open/ClosedOpen Closed
    2013-07-01 matrixhannibal Carbon-Copy- Added matrixhannibal

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code