- 13 Jan, 2016 1 commit
-
-
Andrei Borzenkov authored
Found by: Coverity scan. CID: 96637
-
- 28 Jan, 2015 1 commit
-
-
Andrei Borzenkov authored
Make sure to continue loop over array after failure to free allocated strings. Found by: Coverity scan.
-
- 07 Jun, 2013 1 commit
-
-
Andrey Borzenkov authored
off new function grub_script_execute_new_scope. Change callers to use either of them as appropriate. * grub-core/commands/eval.c: New command eval. * docs/grub.texi (Commands): Document it.
-
- 29 Apr, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
handling of variables containing backslash.
-
- 03 Mar, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
append out of its parent.
-
- 02 Mar, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 15 Jan, 2013 1 commit
-
-
Colin Watson authored
* grub-core/kern/parser.c (grub_parser_split_cmdline): Add getline_data argument, passed to getline. * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add getline_data argument, passed to grub_parser_split_cmdline. * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass lexerstate->getline_data to lexerstate->getline. (grub_script_lexer_init): Add getline_data argument, saved in lexerstate->getline_data. * grub-core/script/main.c (grub_normal_parse_line): Add getline_data argument, passed to grub_script_parse. * grub-core/script/script.c (grub_script_parse): Add getline_data argument, passed to grub_script_lexer_init. * include/grub/parser.h (grub_parser_split_cmdline): Update prototype. Update all callers to pass appropriate getline data. (struct grub_parser.parse_line): Likewise. (grub_rescue_parse_line): Likewise. * include/grub/reader.h (grub_reader_getline_t): Add void * argument. * include/grub/script_sh.h (struct grub_lexer_param): Add getline_data member. (grub_script_parse): Update prototype. Update all callers to pass appropriate getline data. (grub_script_lexer_init): Likewise. (grub_normal_parse_line): Likewise. * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused data argument. * grub-core/kern/parser.c (grub_parser_execute: getline): Make static instead of nested. Rename to ... (grub_parser_execute_getline): ... this. * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused data argument. * grub-core/normal/main.c (read_config_file: getline): Make static instead of nested. Rename to ... (read_config_file_getline): ... this. (grub_normal_read_line): Add unused data argument. * grub-core/script/execute.c (grub_script_execute_sourcecode: getline): Make static instead of nested. Rename to ... (grub_script_execute_sourcecode_getline): ... this. * util/grub-script-check.c (main: get_config_line): Make static instead of nested.
-
- 22 Jun, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
blocks.
-
- 19 Jun, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
Reported by: Robert Mabee. * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?". (make_regex): Escape "|+{}[]". Transform '?' to '.?'. (split_path): Trigger expansion on '?'. (unescape): New function. (wildcard_expand): Unescape parts copied without globbing. * grub-core/script/execute.c (wildcard_escape): Escape '?'. (grub_script_arglist_to_argv): Don't unescape expansions.
-
- 09 Jun, 2012 1 commit
-
-
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.
-
- 12 Mar, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
* grub-core/commands/regexp.c: Likewise. * grub-core/loader/i386/linux.c: Likewise. * grub-core/partmap/msdos.c: Likewise. * grub-core/script/execute.c: Likewise. * grub-core/term/gfxterm.c: Likewise.
-
- 11 Mar, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
* Makefile.util.def (grub_script_gettext): New test. * grub-core/script/execute.c (parse_string): New function. (gettext_append): Likewise. (grub_script_arglist_to_argv): Use gettext_append. * grub-core/script/yylex.l: Fix slash and newline handling in $"...". * tests/grub_script_gettext.in: New file.
-
- 10 Mar, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
* grub-core/commands/xnu_uuid.c: Likewise. * grub-core/loader/efi/appleloader.c: Likewise. * grub-core/script/execute.c: Likewise. * grub-core/script/main.c: Likewise. * util/grub-mkfont.c: Likewise.
-
- 05 Mar, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
* grub-core/normal/cmdline.c: Likewise. * grub-core/normal/misc.c: Likewise. * grub-core/partmap/msdos.c: Likewise. * grub-core/parttool/msdospart.c: Likewise. * grub-core/script/execute.c: Likewise. * grub-core/script/main.c: Likewise. * grub-core/term/terminfo.c: Likewise. * grub-core/video/bitmap.c: Likewise. * util/grub-install.in: Likewise. * util/grub-mkimage.c: Likewise. * util/grub-mklayout.c: Likewise. * util/grub-setup.c: Likewise.
-
- 04 Mar, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
"scope" with "body".
-
- 26 Feb, 2012 2 commits
-
-
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.
-
Vladimir 'phcoder' Serbinenko authored
-
- 13 Feb, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
Better error handling. (grub_script_return): Likewise. * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
-
- 12 Feb, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 04 Feb, 2012 2 commits
-
-
Vladimir 'phcoder' Serbinenko authored
-
Vladimir 'phcoder' Serbinenko authored
NULL-dereference. Reported by: Jim Meyering.
-
- 14 Jan, 2012 1 commit
-
-
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.
-
- 12 Nov, 2011 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
* grub-core/hook/datehook.c (grub_datetime_names): Make const. (grub_read_hook_datetime): Return const char *. * grub-core/kern/env.c (grub_env_get): Return const char *. All users updated. * grub-core/normal/datetime.c (grub_weekday_names): Make const. Mark for gettext. (grub_get_weekday_name): Return const char *. Call gettext. * grub-core/script/argv.c (grub_script_argv_append): Receive const char * and len as the argument. All users updated. (grub_script_argv_split_append): Receive const char *. * include/grub/datetime.h (grub_get_weekday_name): Update proto. * include/grub/env.h (grub_env_get): Likewise. (grub_env_read_hook_t): Return const char *. * include/grub/script_sh.h (grub_script_argv_append): Update proto. (grub_script_argv_split_append): Likewise.
-
- 07 Nov, 2010 1 commit
-
-
BVK Chaitanya authored
-
- 01 Oct, 2010 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
flags.
-
- 21 Sep, 2010 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 17 Sep, 2010 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 07 Sep, 2010 1 commit
-
-
bvk.groups@gmail.com authored
-
- 05 Sep, 2010 1 commit
-
-
BVK Chaitanya authored
-
- 04 Sep, 2010 1 commit
-
-
BVK Chaitanya authored
-
- 03 Sep, 2010 1 commit
-
-
BVK Chaitanya authored
-
- 25 Aug, 2010 1 commit
-
-
BVK Chaitanya authored
-
- 06 May, 2010 2 commits
-
-
BVK Chaitanya authored
-
BVK Chaitanya authored
-
- 05 May, 2010 4 commits
-
-
BVK Chaitanya authored
-
BVK Chaitanya authored
-
BVK Chaitanya authored
-
BVK Chaitanya authored
-
- 30 Apr, 2010 1 commit
-
-
BVK Chaitanya authored
-
- 14 Feb, 2010 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
Prevent unknown commands from stopping menuentry execution. * script/execute.c (grub_script_execute_cmdline): Print error after unknown command.
-