Date: Tue, 14 Aug 2018 16:25:09 +0000 (UTC) From: Brooks Davis <brooks@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r337768 - stable/10/contrib/flex Message-ID: <201808141625.w7EGP9Li082196@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: brooks Date: Tue Aug 14 16:25:09 2018 New Revision: 337768 URL: https://svnweb.freebsd.org/changeset/base/337768 Log: MFC r337508: Terminate filter_create_ext() args with NULL, not 0. filter_create_ext() is documented to take a NULL terminated set of arguments. 0 is promoted to an int so this would fail on 64-bit systems if the value was not passed in a register. On all currently supported 64-bit architectures it is. Obtained from: CheriBSD Sponsored by: DARPA, AFRL Modified: stable/10/contrib/flex/main.c Directory Properties: stable/10/ (props changed) Modified: stable/10/contrib/flex/main.c ============================================================================== --- stable/10/contrib/flex/main.c Tue Aug 14 16:22:14 2018 (r337767) +++ stable/10/contrib/flex/main.c Tue Aug 14 16:25:09 2018 (r337768) @@ -364,7 +364,7 @@ void check_options () output_chain = filter_create_int(NULL, filter_tee_header, headerfilename); if ( !(m4 = getenv("M4"))) m4 = M4; - filter_create_ext(output_chain, m4, "-gP", 0); + filter_create_ext(output_chain, m4, "-gP", NULL); filter_create_int(output_chain, filter_fix_linedirs, NULL); /* For debugging, only run the requested number of filters. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808141625.w7EGP9Li082196>