aboutsummaryrefslogtreecommitdiff
path: root/binutils/rcparse.y
AgeCommit message (Collapse)AuthorFilesLines
2015-01-27Fixes for invalid memory accesses triggered by running windres on corrupt ↵Nick Clifton1-4/+5
binaries. PR binutils/17512 * rcparse.y: Add checks to avoid integer divide by zero. * rescoff.c (read_coff_rsrc): Add check on the size of the resource section. (read_coff_res_dir): Add check on the nesting level. Check for resource names overrunning the buffer. * resrc.c (write_rc_messagetable): Update formatting. Add check of 'elen' being zero.
2015-01-02ChangeLog rotatation and copyright year updateAlan Modra1-1/+1
2014-06-17Prevent large (or negative) version values from overflowing into other ↵Nick Clifton1-4/+4
fields when parsing version strings. PR binutils/16923 * rcparse.y (fixedverinfo): Prevent large version numbers from corrupting other values.
2014-03-05Update copyright yearsAlan Modra1-2/+1
2012-07-28 * rcparse.y (FILEVERSION): Use optcnumexpr instead of cnumexpr.Kai Tietz1-2/+4
(PRODUCTVERSION): Likewise. * binutils-all/windres/version_small.rc: New test. * binutils-all/windres/version_small.rsd: Likewise.
2011-10-252011-10-25 Kai Tietz <ktietz@redhat.com>Kai Tietz1-7/+44
* winduni.h (unicode_from_ascii_len): New prototype. * winduni.c (unicode_from_ascii_len): New function. * windres.h (define_stringtable): Add additional length argument. * windres.c (define_stringtable): Add length argument for string. * rcparse.y (res_unicode_sizedstring): New rule. (res_unicode_sizedstring_concat): Likewise. (string_data): Adjust rule. 2011-10-25 Kai Tietz <ktietz@redhat.com> * binutils-all/windres/strtab4.rc: New test. * binutils-all/windres/strtab4.rsd: Likewise.
2011-10-11 PR binutils/13051Nick Clifton1-4/+17
Fix a syntax error bug when compiling rc files with the VERSIONINFO resource containing more than one language block inside a single StringFileInfo block. * windint.h (rc_ver_stringtable): New structure definition. (rc_ver_info): Use it. * rcparse.y (verstringtable): New variable. (verstringtables): New type. (verstringtables:): New rule declaration. (verblocks:): Use it. * resrc.c (append_ver_stringtable): New function. (append_ver_stringfileinfo): Update to use stringtables. * windres.h (append_ver_stringfileinfo): Update declaration. (append_ver_stringtable): New declaration. * resrc.c (write_rc_versioninfo): Update to support multiple blocks. * resbin.c (bin_to_res_version): Likewise. (res_to_bin_versioninfo): Likewise. * binutils-all\windres\version.rsd: Regenerate. * binutils-all\windres\version_cat.rsd: Regenerate. * binutils-all\windres\version_mlang.rc: Add new test. * binutils-all\windres\version_mlang.rsd: Likewise.
2009-09-02update copyright datesAlan Modra1-1/+1
2008-12-232008-12-23 Kai Tietz <kai.tietz@onevision.com>Kai Tietz1-0/+4
* rcparse.y (rcdata_data): Allow empty comma elements.
2008-03-16 * rcparse.y (resid): Allow control text to span multiple lines.Brian Dessent1-1/+1
2007-09-11PR/5020: STRINGTABLE doesn't work in 2.18 windres.Kai Tietz1-4/+5
2007-07-05Change sources over to using GPLv3Nick Clifton1-1/+2
2007-05-24* rcparse.y: Join strings for elements having no side-effects in "rc"-grammar.Nick Clifton1-21/+41
* testsuite/binutils-all/windres/version_cat.rc: New. * testsuite/binutils-all/windres/version_cat.rsd: New.
2007-05-23Updated windres toolNick Clifton1-180/+338
2007-04-26bfd/Alan Modra1-2/+2
Many files: Include sysdep.h before bfd.h. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. binutils/ * bucumm.h: Split off host dependencies to.. * sysdep.h: ..here. Many files: Include sysdep.h. Remove duplicate headers and reorder. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. ld/ Many files: Include sysdep.h first. Remove duplicate headers. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. opcodes/ * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. * ns32k-dis.c: Include sysdep.h first.
2005-05-08Update FSF addressNick Clifton1-2/+2
2005-02-17 * deflex.l (YY_NO_UNPUT): Define.Alan Modra1-1/+2
* rclex.l (YY_NO_UNPUT): Define. * rcparse.y (null_unichar): New static var. (res_null_text): Use it rather than attempting to init from wchar_t. * windres.c: Include assert.h and time.h before getopt.h. Include config.h and unistd.h too.
2005-01-17PR binutils/647Nick Clifton1-1/+9
* rcparse.y (RCDATA): Allow a filename to be supplied as the parameter. Parse it with define_rcdata_file(). * resrc.c (define_rcdata_file): New function. * windres.h: Provide a prototype for the new function. * resrc.c (define_user_file): Fix typo by replacing "font file" with "file".
2003-09-14 * addr2line.c: Convert to ISO C90 prototypes, change PTR, removeAndreas Jaeger1-2/+1
unneeded (void *) casts. * ar.c: Likewise. * arlex.l: Likewise. * arparse.y: Likewise. * arsup.c: Likewise. * binemul.c: Likewise. * binemul.h: Likewise. * bucomm.c: Likewise. * bucomm.h: Likewise. * budbg.h: Likewise. * budemang.c: Likewise. * budemang.h: Likewise. * coffdump.c: Likewise. * coffgrok.c: Likewise. * cxxfilt.c: Likewise. * debug.c: Likewise. * debug.h: Likewise. * deflex.l: Likewise. * dlltool.c: Likewise. * dlltool.h: Likewise. * dllwrap.c: Likewise. * emul_aix.c: Likewise. * filemode.c: Likewise. * ieee.c: Likewise. * nlmconv.c: Likewise. * nlmconv.h: Likewise. * nlmheader.y: Likewise. * nm.c: Likewise. * prdbg.c: Likewise. * rclex.l: Likewise. * rcparse.y: Likewise. * rdcoff.c: Likewise. * rddbg.c: Likewise. * rename.c: Likewise. * resbin.c: Likewise. * rescoff.c: Likewise. * resrc.c: Likewise. * size.c: Likewise. * srconv.c: Likewise. * stabs.c: Likewise. * strings.c: Likewise. * sysdump.c: Likewise. * sysinfo.y: Likewise. * syslex.l: Likewise. * unwind-ia64.c: Likewise. * unwind-ia64.h: Likewise. * version.c: Likewise. * windres.c: Likewise. * windres.h: Likewise. * winduni.c: Likewise. * wrstabs.c: Likewise.
2003-06-28 * rcparse.y (res_text_field): New res_id variable.Danny Smith1-45/+70
(res_null_text): New static const struct res_id object, with empty unicode name field. (control): Pop parsing of optresidc up one level. Set res_text_field to $2 except for controls which do not accept a text field. Set res_text_field to res_null_text for the special cases (viz. COMBOBOX, EDITTEXT, LISTBOX, SCROLLBAR). (control_params): Adjust to use res_text_field rather than optresidc. (COMBOBOX): Add comment about discrepency between documented vs. observed default style. * resrc.c (define_control): Make first param const. * windres.h (define_control): Adjust prototype. testsuite: * binutils-all/windres/checkbox.rc: New file. * binutils-all/windres/checkbox.rsd: New file. * binutils-all/windres/combobox.rc: New file. * binutils-all/windres/combobox.rsd: New file. * binutils-all/windres/edittext.rc: New file. * binutils-all/windres/edittext.rsd: New file. * binutils-all/windres/listbox.rc: New file. * binutils-all/windres/listbox.rsd: New file. * binutils-all/windres/scrollbar.rc: New file. * binutils-all/windres/scrollbar.rsd: New file.
2003-03-31Allow resource IDs to be strings or numbers.Nick Clifton1-17/+22
Add a test for this.
2002-08-14Don't warn about ALT use with non-VIRTKEY.Nick Clifton1-1/+1
2002-05-05 * rcparse.y: Remove newcmd rule. Move rcparse_discard_stringsAlan Modra1-22/+66
call to rules that need no lookahead. Check for no lookahead. * rclex.l (get_string): Correct "strings" list handling. * resrc.c (read_rc_file): Discard strings.
2002-04-16Define MEMFLAGS_DISCARDABLE by default for dialogs.Nick Clifton1-2/+2
Add a test for this.
2002-04-15Allow two to five parameter in FONT statement of DIALOGEX resources.Nick Clifton1-0/+37
2002-04-10Regernated recently created expected output files using MSVC.Nick Clifton1-2/+2
Set MEMFLAG_PURE by default - bug exposed by regenerated files.
2002-04-09Add WS_CAPTION dialog style if CAPTION is specified.Nick Clifton1-0/+2
Add testcase.
2002-04-09Don't add default dialog style when explicit style specified.Nick Clifton1-1/+5
Print style even if it is 0. Add testcase.
2002-04-09Fix typo in BEDIT warning.Nick Clifton1-4/+4
2002-04-09Apply patch from Bernd Herd to fix quoted class definitions inside dialogs.Nick Clifton1-0/+4
2001-09-19Locale changes from Bruno Haible <haible@clisp.cons.org>.H.J. Lu1-8/+5
2001-07-17* rcparse.y (styles): use SUBLANG_SHIFT instead of 8 (or the moreDJ Delorie1-3/+3
correct 10). * resrc.c (write_rc_resource): Likewise. * windres.h (SUBLANG_SHIFT): Define - as 10.
2001-03-13Fix typos in ChangeLogs and update copyright noticesNick Clifton1-1/+1
2000-10-12* Make comma after string after icon/control optional.DJ Delorie1-6/+48
2000-06-13* rcparse.y (control): ICON controls take an id as the firstDJ Delorie1-31/+21
parameter, not an optional string. Also, call new convenience function that takes res_id's. * resrc.c (define_control): missing text means zero-length string, not zero ID. (define_icon_control): New. * windres.h: declare define_icon_control.
1999-05-12 * rclex.l: add code to suppress certain output from cpp, replaceDJ Delorie1-0/+2
all returns with MAYBE_RETURN (MAYBE_RETURN): new, implement the suppression by returning IGNORED_TOKEN as needed. (cpp_line): remember which file we're in, mark data from included *.h files for suppression. * rcparse.y (input): allow IGNORED_TOKEN outside of known constructs
1999-05-0319990502 sourceware importbinu_ss_19990502Richard Henderson1-0/+1617