[Jython-checkins] jython: Hostname addon to fix openjdk7 buffer overflow (#2651, GH-145).

jeff.allen jython-checkins at python.org
Wed Jul 24 15:49:31 EDT 2019


https://hg.python.org/jython/rev/ef7b8771ce6d
changeset:   8260:ef7b8771ce6d
user:        Adam Burke <adamburkemail at gmail.com>
date:        Wed Jul 24 20:40:01 2019 +0100
summary:
  Hostname addon to fix openjdk7 buffer overflow (#2651, GH-145).

files:
  .travis.yml |  9 +++------
  NEWS        |  1 +
  2 files changed, 4 insertions(+), 6 deletions(-)


diff --git a/.travis.yml b/.travis.yml
--- a/.travis.yml
+++ b/.travis.yml
@@ -28,13 +28,10 @@
      - os: linux
        env: CUSTOM_JDK="default"
 
+addons:
+  hostname: jyshort
+
 before_install:
-  # Patch for buffer overflow bug, see https://github.com/travis-ci/travis-ci/issues/5227
-  - hostname
-  - cat /etc/hosts # optionally check the content *before*
-  - sudo hostname "$(hostname | cut -c1-63)"
-  - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
-  - hostname
   - cat /etc/hosts # optionally check the content *after*
   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then export JAVA_HOME=$(/usr/libexec/java_home); fi
   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
diff --git a/NEWS b/NEWS
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@
 
 Development tip
   Bugs fixed
+    - [ 2651 ] Travis builds failing with *** buffer overflow detected ***
     - [ 2703 ] JycompileAntTask cannot find ...ant.taskdefs.MatchingTask
     - [ 2708 ] test_urllib2net fails (on Travis CI)
     - [ 2764 ] Readme is not displayed when using the GUI installer

-- 
Repository URL: https://hg.python.org/jython


More information about the Jython-checkins mailing list