summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * composite.c: Integer overflow fixes.Paul Eggert2011-07-282-9/+28
| | | | (get_composition_id): Check for overflow in glyph length calculations.
* * coding.c: Integer and memory overflow fixes.Paul Eggert2011-07-282-5/+13
| | | | | | (produce_chars): Redo buffer-overflow calculations to avoid unnecessary integer overflow. Check for size overflow. (encode_coding_object): Don't update size until xmalloc succeeds.
* * character.c (Fstring): Check for size-calculation overflow.Paul Eggert2011-07-282-0/+4
|
* * ccl.c: Integer and memory overflow fixes.Paul Eggert2011-07-282-9/+31
| | | | | | (Fccl_execute_on_string): Check for memory overflow. Use ptrdiff_t rather than EMACS_INT where ptrdiff_t will do. Redo buffer-overflow calculations to avoid integer overflow.
* * callproc.c (child_setup): Don't assume strlen fits in int.Paul Eggert2011-07-282-1/+5
|
* * buffer.c: Memory overflow fixes.Paul Eggert2011-07-282-12/+14
| | | | | | (overlays_at, overlays_in, record_overlay_string, overlay_strings): Don't update size of array until after memory allocation succeeds, because xmalloc/xrealloc may not return.
* * bidi.c: Integer overflow fix.Paul Eggert2011-07-282-11/+26
| | | | | | (bidi_shelve_header_size): New constant. (bidi_cache_ensure_space, bidi_shelve_cache): Use it. (bidi_cache_ensure_space): Avoid integer overflow when allocating.
* Fix incorrect comment.Paul Eggert2011-07-191-3/+3
|
* Use ptrdiff_t for composition IDs.Paul Eggert2011-07-197-18/+33
| | | | | | | | | | | | * character.c (lisp_string_width): * composite.c (composition_table_size, n_compositions) (get_composition_id, composition_gstring_from_id): * dispextern.h (struct glyph_string.cmp_id, struct composition_it.id): * xdisp.c (BUILD_COMPOSITE_GLYPH_STRING): * window.c (Frecenter): Use ptrdiff_t, not int, for composition IDs. * composite.c (get_composition_id): Check for integer overflow. * composite.h: Adjust prototypes to match the above changes.
* Merge from intsign.Paul Eggert2011-07-199-305/+362
|\
| * Merge from trunk.Paul Eggert2011-07-1929-395/+598
| |\
| | * Port to OpenBSD.Paul Eggert2011-07-194-16/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See http://lists.gnu.org/archive/html/emacs-devel/2011-07/msg00688.html and the surrounding thread. * minibuf.c (read_minibuf_noninteractive): Rewrite to use getchar rather than fgets, and retry after EINTR. Otherwise, 'emacs --batch -f byte-compile-file' fails on OpenBSD if an inactivity timer goes off. * s/openbsd.h (BROKEN_SIGIO): Define. * unexelf.c (unexec) [__OpenBSD__]: Don't update the .mdebug section of the Alpha COFF symbol table.
| | * * lread.c (syms_of_lread): Clarify when `lexical-binding' is usedLars Magne Ingebrigtsen2011-07-192-4/+8
| | |
| | * (view-buffer): Allow running in `special' modes if we're visiting a file.Lars Magne Ingebrigtsen2011-07-192-3/+9
| | | | | | | | | | | | Fixes: debbugs:8615
| | * * admin/FOR-RELEASE: Reset list of proof-read manual etc files.Glenn Morris2011-07-191-109/+113
| | |
| | * Rewrite display-buffer-alist-set to handle Emacs 23 options more accurately.Martin Rudalics2011-07-192-173/+187
| | | | | | | | | | | | | | | | | | | | | | | | * window.el (display-buffer-alist-of-strings-p) (display-buffer-alist-set-1, display-buffer-alist-set-2): New functions. (display-buffer-alist-set): Rewrite to handle Emacs 23 options more accurately.
* | | Merge from trunk.Paul Eggert2011-07-1823-95/+237
|\ \ \ | | |/ | |/|
| * | * fileio.c (Fcopy_file) [!MSDOS]: Tighten created file's mask.Paul Eggert2011-07-182-4/+17
| | | | | | | | | | | | | | | This fixes some race conditions on the permissions of any newly created file.
| * | * alloc.c (valid_pointer_p): Use pipe, not open.Paul Eggert2011-07-182-5/+8
| | | | | | | | | | | | This fixes some permissions issues when debugging.
| * | Add an example on how to use prog-mode.Dan Nicolaescu2011-07-181-0/+5
| | |
| * | * fileio.c (Fcopy_file): Adjust mode if fchown fails. (Bug#9002)Paul Eggert2011-07-182-4/+21
| | | | | | | | | | | | | | | | | | If fchown fails to set both uid and gid, try to set just gid, as that is sometimes allowed. Adjust the file's mode to eliminate setuid or setgid bits that are inappropriate if fchown fails.
| * | CC Mode: Fontify declarators properly when, e.g., a jit-lock chunk beginsAlan Mackenzie2011-07-184-4/+69
| | | | | | | | | | | | inside a declaration. Changed cc-engine.el, cc-langs.el, cc-fonts.el.
| * | Update GB18030 charset maps to 2005 editionAndreas Schwab2011-07-183-16/+32
| | |
| * | * src/xdisp.c (next_element_from_string, next_element_from_buffer): Use EQStefan Monnier2011-07-174-10/+16
| | | | | | | | | | | | | | | | | | | | | to compare Lisp_Objects. * src/gnutls.c (syms_of_gnutls): Rename Vgnutls_log_level to global_gnutls_log_level, don't mistake it for a Lisp_Object. (init_gnutls_functions, emacs_gnutls_handle_error): Fix up uses.
| * | * NEWS, MH-E-NEWS: Update for MH-E release 8.2.93.mh-e-8.2.93Bill Wohler2011-07-173-1/+12
| | |
| * | * mh-e.el (Version, mh-version): Update for release 8.2.93.Bill Wohler2011-07-172-2/+6
| | |
| * | * mh-compat.el (mh-pop-to-buffer-same-window): Delete.Bill Wohler2011-07-173-16/+11
| | | | | | | | | | | | | | | | | | * mh-folder.el (mh-inc-folder, mh-modify, mh-scan-folder) (mh-make-folder): Revert to switch-to-buffer, as the Emacs folks decided that it was fine to use it in programs.
| * | * image.el (put-image): Doc typo fix.Lars Magne Ingebrigtsen2011-07-172-1/+3
| | |
| * | Fix last changeAndreas Schwab2011-07-171-1/+1
| | |
| * | Make read-symbol-positions-list more accurateAndreas Schwab2011-07-172-26/+17
| | | | | | | | | | | | | | | * src/lread.c (read_integer): Unread even EOF character. (read1): Likewise. Properly record start position of symbol.
| * | Auto-commit of loaddefs files.Glenn Morris2011-07-171-1/+1
| | |
| * | * src/lread.c (read1): Read `#:' as empty uninterned symbol if noAndreas Schwab2011-07-172-1/+19
| | | | | | | | | | | | symbol character follows.
| * | (tags-search): Doc typo fix.Lars Magne Ingebrigtsen2011-07-172-1/+3
| | |
* | | Use ptrdiff_t for hash table indexes.Paul Eggert2011-07-1811-21/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * category.c (hash_get_category_set): * ccl.c (ccl_driver): * charset.h (struct charset.hash_index, CHECK_CHARSET_GET_ID): * coding.c (coding_system_charset_list, detect_coding_system): * coding.h (struct coding_system.id): * composite.c (get_composition_id, gstring_lookup_cache): * fns.c (hash_lookup, hash_put, Fgethash, Fputhash): * image.c (xpm_get_color_table_h): * lisp.h (hash_lookup, hash_put): * minibuf.c (Ftest_completion): Use ptrdiff_t for hash table indexes, not int (which is too narrow, on 64-bit hosts) or EMACS_INT (which is too wide, on 32-bit --with-wide-int hosts).
* | | * charset.c (Fdefine_charset_internal): Check for integer overflow.Paul Eggert2011-07-182-3/+21
| | | | | | | | | | | | | | | Add a FIXME comment about memory leaks. (syms_of_charset): Don't assume xmalloc returns.
* | | Don't assume that stated character widths fit in int.Paul Eggert2011-07-184-8/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * character.c (Fchar_width, c_string_width, lisp_string_width): * character.h (CHAR_WIDTH): * indent.c (MULTIBYTE_BYTES_WIDTH): Use sanitize_char_width to avoid undefined and/or bad behavior with outlandish widths. * character.h (sanitize_tab_width): Renamed from sanitize_width, now that we have two such functions. All uses changed. (sanitize_char_width): New inline function.
* | | Don't assume that tab-width fits in int.Paul Eggert2011-07-184-20/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | * character.h (sanitize_width): New inline function. (SANE_TAB_WIDTH): New macro. (ASCII_CHAR_WIDTH): Use it. * indent.c (sane_tab_width): Remove. All uses replaced by SANE_TAB_WIDTH (current_buffer). * xdisp.c (init_iterator): Use SANE_TAB_WIDTH.
* | | * fileio.c: Integer overflow issues with file modes.Paul Eggert2011-07-182-3/+6
| | | | | | | | | | | | (Fset_file_modes, auto_save_1): Don't assume EMACS_INT fits in int.
* | | * charset.c (read_hex): New arg OVERFLOW. All uses changed.Paul Eggert2011-07-172-15/+26
| | | | | | | | | | | | | | | Remove unreachable code. (read_hex, load_charset_map_from_file): Check for integer overflow.
* | | * xterm.c: don't go over XClientMessageEvent limitPaul Eggert2011-07-172-7/+17
| | | | | | | | | | | | | | | | | | | | | (scroll_bar_windows_size): Now ptrdiff_t, as we prefer signed. (x_send_scroll_bar_event): Likewise. Check that the size does not exceed limits imposed by XClientMessageEvent, as well as the usual ptrdiff_t and size_t limits.
* | | * keyboard.c: Overflow, signedness and related fixes.Paul Eggert2011-07-162-10/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (make_lispy_movement): Use same integer type in forward decl that is used in the definition. (read_key_sequence, keyremap_step): Change bufsize argument back to int, undoing my 2011-03-30 change. We prefer signed types, and int is wide enough here. (parse_tool_bar_item): Don't assume tool_bar_max_label_size is less than TYPE_MAXIMUM (EMACS_INT) / 2. Don't let the label size grow larger than STRING_BYTES_BOUND. Use ptrdiff_t for Emacs string length, not size_t. Use ptrdiff_t for index, not int. (keyremap_step, read_key_sequence): Redo bufsize check to avoid possibility of integer overflow.
* | | Merge from trunk.Paul Eggert2011-07-164-5/+21
|\ \ \ | | |/ | |/|
| * | Merge from trunk.Paul Eggert2011-07-164-5/+21
| |\ \ | | |/
| | * * fileio.c (Fcopy_file): Pacify gcc re fchown. (Bug#9002)Paul Eggert2011-07-162-1/+11
| | | | | | | | | | | | | | | | | | | | | This works around a problem with the previous change to Fcopy_file. Recent glibc declares fchown with __attribute__((warn_unused_result)), and without this change, GCC might complain about discarding fchown's return value.
| | * (smtpmail-via-smtp): Query the user for password if we get errors 550 to 554.Lars Magne Ingebrigtsen2011-07-172-4/+10
| | |
* | | Merge from trunk.Paul Eggert2011-07-1644-133/+479
|\ \ \ | |/ /
| * | Merge from trunk.Paul Eggert2011-07-1643-129/+465
| |\ \ | | |/
| | * Merge changes made in Gnus trunk.Lars Magne Ingebrigtsen2011-07-173-1/+13
| | | | | | | | | | | | | | | message.el (message-auto-save-directory): If the ~/Mail directory doesn't exist, use ~ as the auto-save directory (bug#4432). gnus-group.el (gnus-group-read-ephemeral-group): Start Gnus if it hasn't already been started.
| | * src/makefile.w32-in (GLOBAL_SOURCES): Add gnutls.c (followup to bug#9059).Juanma Barranquero2011-07-172-1/+6
| | |
| | * Move the defintion of `gnutls-log-level' to the C level to avoid loading ↵Lars Magne Ingebrigtsen2011-07-174-13/+13
| | | | | | | | | | | | problems