Skip to content

Commit b4b174f

Browse files
committed
Workaround for Buffer overflow in
Java_java_net_Inet4AddressImpl_getLocalHostName travis-ci/travis-ci#5227
1 parent b4a25a2 commit b4b174f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,10 @@ jdk:
44
branches:
55
only:
66
- master
7+
before_install:
8+
- cat /etc/hosts # optionally check the content *before*
9+
- sudo hostname "$(hostname | cut -c1-63)"
10+
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
11+
- cat /etc/hosts # optionally check the content *after*
712
after_success:
813
- mvn clean cobertura:cobertura coveralls:cobertura

0 commit comments

Comments
 (0)