1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00
guile/module
Andy Wingo c9e052be49 Fix linker bug that could fail to find the shstrtab
* module/system/vm/linker.scm (<linker-object>): Add name field.  This
  allows the linker to find sections by name, notably before having
  found the .shstrtab section.  As there can be multiple sections with
  type SHT_STRTAB, this fixes a bug whereby we could use a section
  name (a strtab index) into an unrelated strtab.  In the past this
  worked because with ASCII identifiers there won't be an exception,
  although it is possible to accidentally mistake a shared string tail;
  but with UTF-8 identifiers, it's possible for a string table index to
  point in the middle of a codepoint, which is likely not valid UTF-8
  and would raise a bug.  Keeping an additional section name field fixes
  this bug.  Adapt all callers to pass a name argument to
  make-linker-object.
  (find-shstrndx): Update to look at the name field.
* module/system/vm/assembler.scm (make-object): Pass name to
  make-linker-object.

Thanks to Daniel Llorens for the test case.
2018-10-08 10:08:33 +02:00
..
ice-9 Add -Wshadowed-toplevel. 2018-08-07 12:34:32 +02:00
language Rename $closure to $const-fun 2018-10-03 22:58:45 +02:00
oop goops: Fix 'instance?' to work on objects that aren't structs. 2018-08-07 12:05:31 +02:00
rnrs Fix R6RS call-with-{input,output}-file to open textual ports. 2018-08-07 12:34:43 +02:00
scripts compile: Update copyright year. 2018-08-07 12:34:22 +02:00
srfi srfi-19: Remove unused procedure. 2018-08-07 12:34:37 +02:00
sxml Remove duplicate definitions of call/ec' and let/ec'. 2013-04-06 15:40:19 +02:00
system Fix linker bug that could fail to find the shstrtab 2018-10-08 10:08:33 +02:00
texinfo Remove all deprecated code 2017-05-22 13:36:42 +02:00
web web: Export http-request. 2018-08-07 12:13:19 +02:00
Makefile.am Merge branch 'master' into lightning 2018-08-07 12:43:25 +02:00
rnrs.scm Add R6RS bytevector->string, string->bytevector 2016-06-21 11:29:14 +02:00
statprof.scm VM manages hook sets itself 2018-09-14 08:52:24 +02:00
texinfo.scm texinfo: fix @url{@@} parsing 2014-11-09 15:56:33 +00:00