1 |
flameeyes 11/01/30 19:47:28 |
2 |
|
3 |
Added: x48-0.6.3-off-by-one.patch |
4 |
x48-0.6.3-no-readline.patch |
5 |
Log: |
6 |
Proxy commit from Kevin McCarthy: version bump to 0.6.3: cleanup with EAPI=3, fix dependencies, don't install the ROM dumps as their license is unclear, fix buffer overflow, add readline USE flag and fix build with it disabled. Update metadata. |
7 |
|
8 |
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 app-emulation/x48/files/x48-0.6.3-off-by-one.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/x48/files/x48-0.6.3-off-by-one.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/x48/files/x48-0.6.3-off-by-one.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: x48-0.6.3-off-by-one.patch |
17 |
=================================================================== |
18 |
--- x48-0.6.3.orig/src/debugger.c 2011-01-29 12:58:24.432244663 -0500 |
19 |
+++ x48-0.6.3/src/debugger.c 2011-01-29 13:06:46.750769284 -0500 |
20 |
@@ -1919,10 +1919,7 @@ |
21 |
free (cl); |
22 |
cl = (char *) 0; |
23 |
} |
24 |
- if (old_line) |
25 |
- cl = strcpy ((char *) malloc (strlen (old_line)), old_line); |
26 |
- else |
27 |
- cl = strcpy ((char *) malloc (strlen ("(null)")), "(null)"); |
28 |
+ cl = strdup (old_line == NULL ? "(null)" : old_line); |
29 |
} |
30 |
else |
31 |
{ |
32 |
@@ -1936,8 +1933,8 @@ |
33 |
free (old_line); |
34 |
old_line = (char *) 0; |
35 |
} |
36 |
- cl = strcpy ((char *) malloc (strlen (rl)), rl); |
37 |
- old_line = strcpy ((char *) malloc (strlen (rl)), rl); |
38 |
+ cl = strdup (rl); |
39 |
+ old_line = strdup (rl); |
40 |
#ifdef HAVE_READLINE |
41 |
add_history (rl); |
42 |
#endif |
43 |
|
44 |
|
45 |
|
46 |
1.1 app-emulation/x48/files/x48-0.6.3-no-readline.patch |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/x48/files/x48-0.6.3-no-readline.patch?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/x48/files/x48-0.6.3-no-readline.patch?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: x48-0.6.3-no-readline.patch |
52 |
=================================================================== |
53 |
--- x48-0.6.3.orig/configure.ac 2011-01-30 12:35:56.960715403 -0500 |
54 |
+++ x48-0.6.3/configure.ac 2011-01-30 12:35:41.746142323 -0500 |
55 |
@@ -82,7 +82,7 @@ |
56 |
|
57 |
# Checks for header files. |
58 |
AC_HEADER_STDC |
59 |
-AC_CHECK_HEADERS([fcntl.h memory.h stdlib.h string.h sys/ioctl.h sys/time.h termios.h unistd.h]) |
60 |
+AC_CHECK_HEADERS([fcntl.h memory.h stdlib.h string.h sys/ioctl.h sys/time.h termios.h unistd.h stdint.h]) |
61 |
|
62 |
# Checks for typedefs, structures, and compiler characteristics. |
63 |
AC_C_CONST |