ruby-changes:53346
From: nobu <ko1@a...>
Date: Tue, 6 Nov 2018 13:13:54 +0900 (JST)
Subject: [ruby-changes:53346] nobu:r65562 (trunk): Makefile.in: make MJIT_CC_COMMON an absolute path
nobu 2018-11-06 13:13:47 +0900 (Tue, 06 Nov 2018) New Revision: 65562 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65562 Log: Makefile.in: make MJIT_CC_COMMON an absolute path * Makefile.in (mjit_config.h): expand MJIT_CC_COMMON path to mitigate potential security risks. Modified files: trunk/Makefile.in Index: Makefile.in =================================================================== --- Makefile.in (revision 65561) +++ Makefile.in (revision 65562) @@ -610,7 +610,7 @@ mjit_config.h: https://github.com/ruby/ruby/blob/trunk/Makefile.in#L610 quote MJIT_BUILD_DIR "`$(CHDIR) . && pwd`"; \ quote MJIT_MIN_HEADER_NAME "/$(MJIT_HEADER_INSTALL_DIR)/$(MJIT_MIN_HEADER_NAME)"; \ sep=,; \ - quote "MJIT_CC_COMMON " $(MJIT_CC); \ + quote "MJIT_CC_COMMON " "`command -v $(MJIT_CC)`"; \ quote "MJIT_CFLAGS $${need_mjit_archflag:+ MJIT_ARCHFLAG}" $(MJIT_CFLAGS); \ quote "MJIT_OPTFLAGS " $(MJIT_OPTFLAGS); \ quote "MJIT_DEBUGFLAGS " $(MJIT_DEBUGFLAGS); \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/