Project

General

Profile

Actions

Bug #3776

open

gcc can cause segfaults on ctfmerge

Added by Pedro Giffuni about 9 years ago. Updated almost 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2013-05-21
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

The issue was found initially in NetBSD:
https://github.com/jsonn/src/commit/924b243eee68869ee5ed48f2b2fab9815c4f4e82

GCC happens to use invalid ((unsigned)-1) value for DW_AT_byte_size to denote a variable size in an object.

I readapted the NetBSD patch for use in FreeBSD and in the process also unsigned some variables to clear some signed/unsigned comparison issues.


Files

patch-gcc-cvt.diff (4.39 KB) patch-gcc-cvt.diff Patch to avoid invalid values in DW_AT_byte_size Pedro Giffuni, 2013-05-21 12:18 AM
patch-gcc-cvt.diff (5.39 KB) patch-gcc-cvt.diff Updated patch with signed intr_nbits Pedro Giffuni, 2013-06-29 07:07 PM
patch-gcc-fix.diff (5.38 KB) patch-gcc-fix.diff Adjust ml_size too. Pedro Giffuni, 2013-06-29 07:26 PM
Actions

Also available in: Atom PDF