Permalink
Commits on Nov 8, 2017
  1. add missing win64 types

    Stephen von Takach committed Nov 8, 2017
    fixes #588
Commits on Nov 4, 2017
  1. optimise read_string for case if len is nil

    Stephen von Takach committed Nov 4, 2017
  2. read_string should not throw an error on length 0

    Stephen von Takach committed Nov 4, 2017
    Often strings with length 0 are accompanied by a pointer to an invalid
    memory address.
    
    struct alert {
       uint error_code;
       uint message_length;
       char *message;
    };
    ```
    
    If the message length is 0 then message pointer is often also 0 - i.e.
    a null pointer.
    
    Before this a check would be required for length before calling
    read_string as otherwise it will raise an exception instead of
    returning an empty string as expected.
Commits on Aug 30, 2017
  1. Fix typo of mprotect (#586)

    a2 committed with tduehr Aug 30, 2017
Commits on Jul 17, 2017
  1. Do not assume a path to the sh and env binaries (#528)

    fornwall committed with tduehr Jul 17, 2017
    This improves portability, specifically for non-rooted Android
    devices which lacks /bin and /usr folders.
Commits on Jul 12, 2017
  1. Added support for Bitmask. (#573)

    Kerilk committed with tduehr Jul 12, 2017
    * Added support for Bitmask.
    
    * Fix for travis CI failing on ruby 2.0.0
    
    * Fix for ruby 1.9.3.
    
    * Fix warning during CI.
  2. Fix compatibility with PPC64LE platform (#577)

    etehtsea committed with tduehr Jul 12, 2017
    * prepare for libffi submodule
    
    remove libffi from tree
    
    * return libffi
    
    This time as a submodule.
    
    * update dependency
    
    * add autogen.sh to makefile stubs
    
    libffi uses autoconf; a fresh checkout does not have a configure script
    
    * don't build docs
    
    * Bump libffi to current HEAD
    
    * Fix HAVE_FFI_PREP_CIF_VAR define
    
    If vendored library used `have_func('ffi_prep_cif_var')` call always
    returns `false`. Because of that `ffi_prep_cif` was used which caused
    many failures related to double/float on PPC64LE platform.
    
    Fixes #413
    
    * Mention submodule in README
    
    * Fix gem install command in README
    
    * Bump rake-compiler-dock
    
    Use latest version with Ubuntu 17.04 base image
    
    * Fix rake gem:windows command
    
    configure.ac:187: error: possibly undefined macro: LT_SYS_SYMBOL_USCORE
          If this token and others are legitimate, please use m4_pattern_allow.
          See the Autoconf documentation.
    autoreconf: /usr/bin/autoconf failed with exit status: 1
    
    * Fix building 2.1/2.2 on macOS
    
    * Unmask 2.3 on macOS
Commits on May 18, 2017
  1. Normalize sparc64 to sparcv9. (#575)

    nirvdrum committed with tduehr May 18, 2017
    Linux appears to report as 'sparc64' rather than 'sparcv9' when running on the same CPU. Since the CPU features are the same, normalize to 'sparcv9' to keep things simple.
Commits on May 15, 2017
  1. Add support for MSYS2 (#572)

    barkerest committed with tduehr May 15, 2017
Commits on Apr 13, 2017
  1. Drop Ruby 1.8.7 support (#480)

    koic committed with tduehr Apr 13, 2017
    * Drop Ruby 1.8.7 support
    
    * Remove code that handles 1.8.x specifically
Commits on Mar 3, 2017
  1. version bump to 1.9.18

    tduehr committed Mar 3, 2017
Commits on Feb 20, 2017
  1. Merge pull request #556 from cosmo0920/add-2.4.0-cross-compiling-target

    tduehr committed Feb 20, 2017
    Tweaks for cross compiling with MSYS2 toolchain
Commits on Feb 13, 2017
  1. Merge pull request #555 from ffi/rake-compile-update

    tduehr committed Feb 13, 2017
    Update Gemfile
  2. Merge pull request #557 from junaruga/feature/fix-for-ruby2.4

    tduehr committed Feb 13, 2017
    Suppress deprecated Fixnum warnings on Ruby 2.4.0.
  3. - Suppress deprecated Fixnum warnings on Ruby 2.4.0.

    junaruga committed Feb 9, 2017
    - Add Ruby 2.4.0 to .travis.yml
Commits on Jan 24, 2017
  1. Add missing shlwapi.h include

    cosmo0920 committed Jan 24, 2017
Commits on Jan 17, 2017
  1. Merge pull request #545 from voxik/fix-permissions

    tduehr committed Jan 17, 2017
    Remove executable bit.
  2. Merge pull request #553 from larskanis/relative-dll-path

    tduehr committed Jan 17, 2017
    Avoid undefined behaviour of LoadLibrary() on Windows.
  3. Update Gemfile

    tduehr committed Jan 17, 2017
Commits on Jan 13, 2017
  1. Bump version to 1.9.17.

    headius committed Jan 13, 2017
  2. Merge pull request #551 from nurse/add-windows-binary-gem-for-ruby-2.4

    headius committed Jan 13, 2017
    use latest rake-compiler-dock
  3. Bump version to 1.9.15.

    headius committed Jan 13, 2017
  4. Avoid undefined behaviour of LoadLibrary() on Windows.

    larskanis committed Jan 13, 2017
    According to [1] the flag LOAD_WITH_ALTERED_SEARCH_PATH
    should be used with absolute paths only. It has the effect,
    that the path of the DLL to be loaded is temporary added
    to the search path, so that dependent DLLs in the same
    directory can be found and loaded implicit.
    
    However for relative paths the standard LoadLibrary()
    search order should be used, because the behaviour of
    LOAD_WITH_ALTERED_SEARCH_PATH isn't defined for relative
    paths. In practice (on Windows 10) relative paths to
    Windows system DLLs do work, so that the library is loaded,
    but DLLs in other search paths are not found, when this
    flag is set.
    
    Ruby's fiddle library uses LoadLibrary without flags in
    both cases.
    
    [1]
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms684179(v=vs.85).aspx
Commits on Jan 12, 2017
  1. use latest rake-compiler-dock

    nurse committed Jan 12, 2017
    Ruby 2.4 requires rake-compiler-dock v0.6.0.
    Moreover it should always use latest one because of tracking latest
    rubies.
Commits on Jan 4, 2017
  1. Remove executable bit.

    voxik committed Jan 4, 2017
Commits on Nov 11, 2016
  1. Merge pull request #533 from srse/gentoo_hint_for_readme

    tduehr committed Nov 11, 2016
    Updated README.md
  2. Update README.md

    tduehr committed Nov 11, 2016
Commits on Nov 8, 2016
  1. update x86_64-openbsd types

    tduehr committed Nov 8, 2016
    closes #535
Commits on Oct 21, 2016
  1. Updated README.md

    srse committed Oct 21, 2016
    added links for pax and mprotect