Unified · Split
| @@ -1,3 +1,5 @@ | ||
| 1 | +20080522 | |
| 2 | + dis/lib/msgio.dis appl/lib/msgio.b - fix incorrect check for 16rFF | |
| 1 | 3 | 20080416 |
| 2 | 4 | fix emu/Nt/os.c use of wrong name for null value |
| 3 | 5 | move win/win-x11a references to emu/*/emu config files from emu/*/mkfile |
| @@ -921,6 +921,9 @@ pstring(p: ref Prog, a: int): (int, string, string) · 920 unmodified lines | ||
| 921 | 921 | (n, s, err) = pstring0(p, a, m); |
| 922 | 922 | if(err != "" || n <= len s) |
| 923 | 923 | break; |
| 924 | + # guard against broken devprog | |
| 925 | + if(m >= 3 * n) | |
| 926 | + return (-1, nil, "bad string"); | |
| 924 | 927 | m *= 2; |
| 925 | 928 | } |
| 926 | 929 | return (n, s, err); |
| @@ -89,7 +89,7 @@ getbuf(fd: ref Sys->FD, buf: array of byte, n: int): (int, string) · 88 unmodified lines | ||
| 89 | 89 | } |
| 90 | 90 | if(buf[0] == byte 0) |
| 91 | 91 | return (n, nil); |
| 92 | − if(buf[0] == byte 16rFF){ | |
| 92 | + if(buf[0] != byte 16rFF){ | |
| 93 | 93 | # garbled, possibly the wrong encryption |
| 94 | 94 | return (-1, "failure"); |
| 95 | 95 | } |
Binary file not shown.
Binary file not shown.
| @@ -1 +1 @@ | ||
| 1 | −#define VERSION "Fourth Edition (20080416)" | |
| 1 | +#define VERSION "Fourth Edition (20080522)" | |