bugGNU indent - Bugs: bug #58007, Segmentation fault: 11

 
 

bug #58007: Segmentation fault: 11

Submitter:  None
Submitted:  Wed 18 Mar 2020 01:52:59 PM UTC
   
 
Category:  C Severity:  3 - Normal
Item Group:  Crash Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 18 Mar 2020 01:52:59 PM UTC, original submission:  

Segmentation fault: 11 on running 'gindent execute_cmd.c -linux'

gindent version is 2.2.12

execute_cmd.c is attached and it's a file from Bash source code.

fix:
file: src/indent.c:221
need to update save_com.end also after saving '{' into save_com buffer
fix is "save_com.end = save_com.ptr + 1"

patch is attached as 0001-fix.patch

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #48617:  execute_cmd.c added by None (127KiB - application/octet-stream)
file #48618:  0001-fix.patch added by None (638B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2020-03-18 None Attached File- Added execute_cmd.c, #48617
    Attached File- Added 0001-fix.patch, #48618

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code