Files
afflib/afflib-3.6.12-fix-vvfat-overflow.patch

22 lines
743 B
Diff
Raw Permalink Normal View History

- Updated to v3.7.0 * Per upstream: Changed license from BSD with advertising to BSD without advertising. * I still found lots of BSD 4-clause references in the source, so I left specfile license field as BSD 4-clause * ALL FILES: Audited for copyright. * COPYING: Clarified that Basis copyright only applies to * .gitignore: created file in preparation for move to github - upgrade to v3.6.15 * configure.ac: incorporated Greg Freemyer's patch to address some ncurses problems. * lib/utils.h: created virtual destructore * configure.ac: added AC_PROG_CXX * tools/affxml.cpp (main): removed unused bflag variable * lib/vnode_afd.cpp: max() is now always defined, even on windows. * lib/aftimer.h (aftimer::eta_time): added std:: before string * lib/utils.h: added virtual destructor for seginfo * lib/afflib_pages.cpp (af_get_pagesize): having af_page_size() as a macro was causing problems, so now there is both af_page_size and af_get_pagesize, both of which do the same. Please use af_get_pagesize. * aftimer.h (timestamp): updated aftimer for higher resolution on win32 * lib/afflib.cpp (af_get_pagesize): created af_get_pagesize, which for some reason was missing. * lib/afflib.h: added int af_get_pagesize(AFFILE *af); - use the %{__make} %{?_smp_mflags} macro in the specfile - Removed the ncurses patch. The issue was addressed in the ncurses package directly. - Add a patch to handle ncurses tinfo split introduced for 12.2 OBS-URL: https://build.opensuse.org/package/show/security:forensics/afflib?expand=0&rev=1
2014-09-15 15:09:04 +00:00
--- old/lib/qemu/block-vvfat.c 2011-05-29 00:55:09.024353723 +0200
+++ new/lib/qemu/block-vvfat.c 2011-05-29 00:56:05.041937980 +0200
@@ -870,7 +870,17 @@
{
direntry_t* entry=array_get_next(&(s->directory));
entry->attributes=0x28; /* archive | volume label */
- snprintf((char*)entry->name,11,"QEMU VVFAT");
+ entry->name[0] = 'Q';
+ entry->name[1] = 'E';
+ entry->name[2] = 'M';
+ entry->name[3] = 'U';
+ entry->name[4] = ' ';
+ entry->name[5] = 'V';
+ entry->name[6] = 'V';
+ entry->name[7] = 'F';
+ entry->extension[0] = 'A';
+ entry->extension[1] = 'T';
+ entry->extension[2] = '\000';
}
/* Now build FAT, and write back information into directory */