Opened 5 years ago

Closed 5 years ago

#1507 closed patch (fixed)

qmake crash with buffer overflow

Reported by: tourist Owned by: Dave Love <d.love@…>
Priority: normal Milestone:
Component: sge Version: 8.1.7
Severity: critical Keywords:
Cc:

Description

Hi from jon.stahl@…:

I was seeing a qmake crash with a buffer overflow segfault on CentOS 6.5 x86_64.

I was able to resolve it by the following patch:

3rd_party/qmake/remote-sge.c

if(gethostname(hostbuffer, 1023) != 0) {

to

if(gethostname(hostbuffer, sizeof hostbuffer) != 0) {

Change History (2)

comment:1 Changed 5 years ago by dlove

Damn. Thanks.

comment:2 Changed 5 years ago by Dave Love <d.love@…>

  • Owner set to Dave Love <d.love@…>
  • Resolution set to fixed
  • Status changed from new to closed

In 4762/sge:

Fix #1507: avoid buffer overflow in qmake (from Jon Stahl)

Note: See TracTickets for help on using tickets.