Opened 7 years ago

Closed 7 years ago

#1507 closed patch (fixed)

qmake crash with buffer overflow

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


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:


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


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

Change History (2)

comment:1 Changed 7 years ago by dlove

Damn. Thanks.

comment:2 Changed 7 years ago by Dave Love <…>

  • Owner set to Dave 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.