1. 12 Feb, 2016 1 commit
    • Vladimir Serbinenko's avatar
      yylex: use grub_fatal for exit. · 342d6edb
      Vladimir Serbinenko authored
      lexer calls yylex_fatal on fatal internal errors. yylex_fatal itself is
      declared as noreturn and calls exit. Returning from noreturn function has
      unpredictable consequences.
      342d6edb
  2. 16 Nov, 2013 1 commit
    • Vladimir Serbinenko's avatar
      Decrease stack usage in lexer. · 080603f0
      Vladimir Serbinenko authored
      	We have only 92K of stack and using over 4K per frame is wasteful
      
      	* grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
      	as macros so that compiler would remove useless structure on stack.
      	Better solution would be to fix flex not to put this structure on
      	the stack but flex is external program.
      080603f0
  3. 07 Nov, 2013 1 commit
    • Vladimir Serbinenko's avatar
      Remove vestiges of -Wunsafe-loop-optimisations. · ec0ebb3f
      Vladimir Serbinenko authored
      	* conf/Makefile.common (CFLAGS_GNULIB): Remove
      	-Wno-unsafe-loop-optimisations.
      	* grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
      	pragma.
      	* grub-core/io/gzio.c: Likewise.
      	* grub-core/script/parser.y: Likewise.
      	* grub-core/script/yylex.l: Likewise.
      	* util/grub-mkfont.c: Likewise.
      ec0ebb3f
  4. 17 Oct, 2013 1 commit
  5. 05 Sep, 2012 1 commit
  6. 09 Jun, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Fix wildcard escaping. · 5e619f40
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
      	* grub-core/script/execute.c (wildcard_escape): .. to here.
      	Don't escape dot.
      	* grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
      	* grub-core/script/execute.c (wildcard_unescape): .. to here.
      	Don't escape dot.
      	* grub-core/script/execute.c (gettext_append): Always escape.
      	(grub_script_arglist_to_argv): Always handle escaping/unescaping.
      	* grub-core/script/yylex.l: Don't cut away the escaping.
      	* tests/grub_script_echo1.in: Add tests with wildcard.
      5e619f40
  7. 09 May, 2012 1 commit
  8. 11 Mar, 2012 1 commit
  9. 26 Feb, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      $"..." support in scripts. · 7e8fac16
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
      	GRUB_SCRIPT_ARG_TYPE_GETTEXT.
      	* grub-core/script/yylex.l: Likewise.
      	* include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
      	value.
      7e8fac16
  10. 24 Feb, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      * conf/Makefile.common (CFLAGS_GNULIB): Add · 4e27343f
      Vladimir 'phcoder' Serbinenko authored
      	-Wno-unsafe-loop-optimizations.
      	* configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
      	on tools.
      	* grub-core/commands/legacycfg.c: Add pragma to skip
      	-Wunsafe-loop-optimizations.
      	(check_password_md5_real): Fix loop counter type.
      	* grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
      	reading.
      	* grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
      	* grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
      	loop condition.
      	* grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
      	* grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
      	* grub-core/net/net.c (grub_net_route_address): Add safety loop
      	condition.
      	* grub-core/normal/charset.c (bidi_line_wrap): Likewise.
      	* grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
      	avoid possible infinite loops.
      	* grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
      	and -Wunsafe-loop-optimizations.
      	* grub-core/script/yylex.l: Likewise.
      	* util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
      	(print_glyphs): Avoid infinite loops.
      	* util/grub-mkimage.c (compress_kernel_xz): Fix format security.
      4e27343f
  11. 03 Feb, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      * grub-core/commands/ls.c: Gettextize. · 4a9f8346
      Vladimir 'phcoder' Serbinenko authored
              * grub-core/commands/setpci.c: Likewise.
              * grub-core/commands/videotest.c: Likewise.
              * grub-core/disk/geli.c: Likewise.
              * grub-core/kern/mm.c: Likewise.
              * grub-core/lib/relocator.c: Likewise.
              * grub-core/loader/efi/appleloader.c: Likewise.
              * grub-core/loader/i386/xnu.c: Likewise.
              * grub-core/loader/ia64/efi/linux.c: Likewise.
              * grub-core/loader/xnu.c: Likewise.
              * grub-core/net/dns.c: Likewise.
              * grub-core/net/net.c: Likewise.
              * grub-core/script/lexer.c: Likewise.
              * grub-core/script/parser.y: Likewise.
              * grub-core/script/yylex.l: Likewise.
              * util/getroot.c: Likewise.
              * util/grub-setup.c: Likewise.
      4a9f8346
  12. 14 Jan, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Eliminate grub_min/grub_max prone to overflow usage. · 9c271078
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
      	(poll_nonroot_hub): Likewise.
      	* grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
      	(grub_affs_label): Likewise.
      	* grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
      	* grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
      	(grub_hfs_label): Likewise.
      	* grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
      	* grub-core/fs/zfs/zfs.c (MIN): Remove.
      	(zap_leaf_array_equal): Use grub_size. Remove MIN.
      	(zap_leaf_array_get): Likewise.
      	(dnode_get_path): Likewise.
      	* grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
      	* grub-core/io/xzio.c (grub_xzio_read): Likewise.
      	* grub-core/script/execute.c (grub_script_break): Likewise.
      	* grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
      	grub_max.
      	* grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
      	* include/grub/misc.h (grub_min): Removed.
      	(grub_max): Likewise.
      9c271078
  13. 24 Oct, 2011 1 commit
  14. 27 Jun, 2011 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Implement time command. · 5ff1d945
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/Makefile.core.def (time): New module.
      	* grub-core/commands/time.c: New file.
      	* grub-core/script/parser.y: Remove "time" keyword.
      	* grub-core/script/yylex.l: Likewise.
      5ff1d945
  15. 26 Jun, 2011 1 commit
    • Szymon Janc's avatar
      * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL · cbf597af
      Szymon Janc authored
      	pointer checks before calling grub_free().
      	* grub-core/commands/wildcard.c (match_devices): Likewise.
      	* grub-core/commands/wildcard.c (match_files): Likewise.
      	* grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
      	* grub-core/fs/cpio.c (grub_cpio_open): Likewise.
      	* grub-core/fs/udf.c (grub_udf_read_block): Likewise.
      	* grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
      	* grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
      	* grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
      	* grub-core/script/yylex.l (grub_lexer_unput): Likewise.
      	* grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
      	* grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
      cbf597af
  16. 24 Sep, 2010 1 commit
    • Yves Blusseau's avatar
      * grub-core/lib/LzFind.c: Add missing include. · 1d12cf29
      Yves Blusseau authored
          * grub-core/lib/LzmaEnc.c: Likewise.
          * grub-core/script/lexer.c: Likewise.
          * grub-core/script/yylex.l: Likewise.
          * util/grub-macho2img.c: Likewise.
          * util/grub-menulst2cfg.c: Likewise.
          * util/grub-mklayout.c: Likewise.
          * util/grub-mkpasswd-pbkdf2.c
          * util/grub-mkrelpath.c: Likewise.
          * util/resolve.c: Likewise.
      1d12cf29
  17. 05 Sep, 2010 1 commit
  18. 06 May, 2010 1 commit
  19. 05 May, 2010 1 commit
  20. 30 Apr, 2010 2 commits
  21. 13 Apr, 2010 1 commit
  22. 06 Apr, 2010 1 commit
  23. 29 Mar, 2010 1 commit
  24. 25 Jan, 2010 1 commit
  25. 23 Jan, 2010 3 commits
  26. 22 Jan, 2010 1 commit