]>
Commit | Line | Data |
---|---|---|
d57b4abe ER |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.1.208 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.1.208 | |
11 | Problem: On Alpha get an unaligned access error. | |
12 | Solution: Store the dictitem pointer before using it. (Matthew Luckie) | |
13 | Files: src/eval.c | |
14 | ||
15 | ||
16 | *** ../vim-7.1.207/src/eval.c Sat Jan 5 13:34:01 2008 | |
17 | --- src/eval.c Sat Jan 5 13:22:52 2008 | |
18 | *************** | |
19 | *** 3407,3412 **** | |
20 | --- 3407,3413 ---- | |
21 | hashtab_T *ht; | |
22 | hashitem_T *hi; | |
23 | char_u *varname; | |
24 | + dictitem_T *di; | |
25 | ||
26 | ht = find_var_ht(name, &varname); | |
27 | if (ht != NULL && *varname != NUL) | |
28 | *************** | |
29 | *** 3414,3422 **** | |
30 | hi = hash_find(ht, varname); | |
31 | if (!HASHITEM_EMPTY(hi)) | |
32 | { | |
33 | ! if (var_check_fixed(HI2DI(hi)->di_flags, name)) | |
34 | ! return FAIL; | |
35 | ! if (var_check_ro(HI2DI(hi)->di_flags, name)) | |
36 | return FAIL; | |
37 | delete_var(ht, hi); | |
38 | return OK; | |
39 | --- 3415,3423 ---- | |
40 | hi = hash_find(ht, varname); | |
41 | if (!HASHITEM_EMPTY(hi)) | |
42 | { | |
43 | ! di = HI2DI(hi); | |
44 | ! if (var_check_fixed(di->di_flags, name) | |
45 | ! || var_check_ro(di->di_flags, name)) | |
46 | return FAIL; | |
47 | delete_var(ht, hi); | |
48 | return OK; | |
49 | *** ../vim-7.1.207/src/version.c Sat Jan 5 18:06:33 2008 | |
50 | --- src/version.c Sat Jan 5 22:14:17 2008 | |
51 | *************** | |
52 | *** 668,669 **** | |
53 | --- 668,671 ---- | |
54 | { /* Add new patch number below this line */ | |
55 | + /**/ | |
56 | + 208, | |
57 | /**/ | |
58 | ||
59 | -- | |
60 | ARTHUR: Bloody peasant! | |
61 | DENNIS: Oh, what a give away. Did you here that, did you here that, eh? | |
62 | That's what I'm on about -- did you see him repressing me, you saw it | |
63 | didn't you? | |
64 | The Quest for the Holy Grail (Monty Python) | |
65 | ||
66 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
67 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
68 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
69 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |