1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00
Commit graph

936 commits

Author SHA1 Message Date
Pete Batard
e76f60a3e8 [misc] use the more univerasal _mm_alloc() instead of _aligned_malloc()
* Also ensure that our buffers are aligned
* Also remove the use of static buffers in ms-sys
2016-06-10 12:42:43 +01:00
Pete Batard
3fdf622933 [syslinux] fix Syslinux installation for some media
* Some disk devices, such as O2Micro PCI-E SD card readers, return ERROR_INVALID_PARAMETER
  when attempting to use ReadFile() on a volume against a non 8-byte aligned buffer.
* This patch ensures that the Syslinux buffers for sector patching are 16-byte aligned.
* HUGE THANKS to 424778940z, for the numerous testing that allowed to troubleshoot this issue.
* Closes #767
2016-06-09 17:49:58 +01:00
Pete Batard
c0393aec08 [misc] add a few more missing calloc checks
* Also use the relevant macro in msapi_utf8.h
2016-06-08 16:32:31 +01:00
Pete Batard
a10ea1498b [misc] add more check for malloc() errors
* Closes #772
* With thanks to @elfring
2016-06-07 19:47:01 +01:00
Pete Batard
f1f620411c [syslinux] use SetFilePointerEx and other improvements 2016-06-06 19:39:53 +01:00
Pete Batard
f31a90bba2 [enum] add support for O2Micro PCI-E card readers
* Part of #767
2016-06-06 00:36:56 +01:00
Pete Batard
66534640a4 [enum] use Unicode when retrieving the device friendly name
* This should fix the improper display of some localized strings such as
  "Microsoft Virtual Disk"
2016-06-05 20:21:16 +01:00
Pete Batard
de386329e4 [clang] fix breakage when opening ISO9660 images
* Even in MS compatibility mode, clang needs to be told how to pack structs
* Also fix a compilation warning with Link Time Code Generation
2016-06-04 22:09:25 +01:00
Pete Batard
3b0c4e8083 add Clang/C2 support for Visual Studio (EXPERIMENTAL)
* When I say EXPERIMENTAL, I mean it!!
* Currently, opening an ISO9660 image fails with 'Could not access directory'
2016-06-04 18:57:55 +01:00
Pete Batard
f0b13361be [msvc] harmonize compilation options 2016-06-04 17:50:16 +01:00
Pete Batard
39d6b90447 [misc] fixes for Clang/C2 compilation support 2016-06-04 17:13:50 +01:00
Pete Batard
2e530d5ce7 [dev] add exception for Intenso Speed Line flash drives
* This flash drive seems to declare itself as FIXED which resulted in a +1 score
2016-06-03 11:21:25 +01:00
Pete Batard
07497fc231 [misc] fix the use of invalid "%luX" formatter
* "%luX" is invalid as "X" already means unsigned hexadecimal so there's no need for "u"
2016-06-02 21:20:29 +01:00
Pete Batard
c2fc113f8a [loc] update Simplified Chinese translation to latest
* Also fix an issue with the translation for MSG_031
* Thanks go to choleraehyq for spotting the issue and 424778940z for providing the new translations
* Closes #766
2016-05-31 23:21:00 +01:00
Pete Batard
bbafd128c1 [net] fix https downloads
* Closes #712
2016-05-31 16:35:48 +01:00
Pete Batard
2495f2d444 [misc] fix a new set of MinGW warnings 2016-05-30 17:49:32 +01:00
Pete Batard
b9da0cf057 [ui] fix missing partition scheme tooltip after selecting an ISO
* Tooltips can only be manipulated from the same thread as the one that created their parent
* Also increase the SetLGP() timeout as this seems to be problematic
* Closes #764
2016-05-30 17:32:49 +01:00
Pete Batard
bf679271b8 [misc] prevent application launch if running non elevated
* Since, despite what Microsoft states, having 'requireAdministrator' in a manifest STILL isn't
  enough to prevent an app from launching as non elevated for some weird account configurations...
* Closes #757
2016-05-26 21:47:01 +01:00
Pete Batard
790aacd49a [core] add SHA-256 validation DB for downloadable content
* Downloadable content will now be indicating, in the log, whether it can be trusted with ✓ (validated) or ✗ (caution)
* Of course this validation only applies for files we know of, i.e. the downloadable content that existed at the time the DB was
  created. So, if Syslinux 8.x gets released tomorrow and we put it on our server, you'll get an ✗ regardless of its integrity.
* Closes #758
2016-05-25 12:20:20 +01:00
Pete Batard
04d6ac0cdd [checksum] add an individual checksum function call
* Part of #758
* Also define checksum types and fix a missing change in smart.c
2016-05-24 13:21:23 +01:00
Pete Batard
a41bca3183 [checksum] fix wrong checksums for content that isn't a multiple of 64 bytes
* Leading odd-sized chunks needs to be tested *before* updating the bytecount
* Closes #761
2016-05-24 11:48:10 +01:00
Pete Batard
81673ade26 [core] clean up the RUFUS_DRIVE_INFO struct
* Remove the duplication of DISK_GEOMETRY to keep only the variables we actually use
* Also set rufus-next to 2.10
2016-05-23 12:19:43 +01:00
Pete Batard
258a4f7ca0 [core] work around a Windows bug that may render a disk inaccessible on cleanup
* The root of the issue is that Windows IOCTL_DISK_CREATE_DISK does not properly
  zero all of the MBR/GPT/PBR structure with PARTITION_STYLE_RAW (which is what
  diskpart uses to clean a disk), and leaves plenty of partition artefacts behind.
* This means that, when an image with complex partitioning has been applied, such
  as Chromium/ChromeOS, you may end up with a drive that can not be repartitioned
  or reformatted in Windows (and this is completely independent of whether Rufus
  was used to perform these operations - For instance you will get the same issue
  if you use Win32DiskImager and diskpart + clean).
* The only option left for users then is to reset/repartition their drives in Linux
  or some other OS, as Windows' VDS becomes incapacitated to handle the drive, as
  the problem persists independently of reset/re-plug/Windows platform being used.
* To work around this, we ensure that we zero the MBR/GPT/PBR sectors BEFORE calling
  IOCTL_DISK_CREATE_DISK.
* Also move zeroing of the drive before partition reset.
* Closes #759
2016-05-21 16:34:34 +01:00
Pete Batard
935679dd85 [misc] silence a couple Coverity warnings
* We're not doing crypto here, so using rand() is fine...
2016-05-18 10:35:50 +01:00
Pete Batard
e177144258 v2.9 (build 934) 2016-05-17 10:46:18 +01:00
Nikolaos Margaritis
83147e5158 [loc] update Greek translation to latest 2016-05-17 09:57:35 +01:00
Ivan Strugar
b4e93d3652 [loc] update Serbian translation to latest 2016-05-17 09:55:07 +01:00
thanhtai2009
27f4a92be2 [loc] update Vietnamese translation to latest 2016-05-17 09:53:01 +01:00
Pete Batard
39c4b51069 [loc] fix a typo in the French translation 2016-05-16 20:46:51 +01:00
Roberto Pino
6762e6febb [loc] update Dutch translation to latest 2016-05-16 20:33:38 +01:00
Martin Kubánik
807ef70879 [loc] update Slovak translation to latest 2016-05-16 20:12:36 +01:00
Pete Batard
1a24e5bbd7 [syslinux] fix a typo that reintroduced a possible crash
* a10a207790 reintroduced the crash that was fixed in ad68ccfac9
  due to the missing semicolon.
* Also fix a minor output message issue
* Closes #752
2016-05-16 16:33:53 +01:00
Viszokai György
0abd745a87 [loc] update Hungarian translation to latest 2016-05-16 15:29:29 +01:00
Dario Komar
fc6b3be052 [loc] update Croatian translation to latest 2016-05-16 15:28:03 +01:00
Richard Kahl
25f03ff407 [loc] update Czech translation to latest 2016-05-16 12:25:10 +01:00
Krasimir Newenow
eb07933939 [loc] update Bulgarian translation to latest 2016-05-13 10:43:33 +01:00
Tiryoh
cb9c1d05a3 [loc] update Japanese translation to latest
* Closes #755
2016-05-13 10:41:13 +01:00
Matej Horvat
2c3745f459 [loc] update Slovenian translation to latest 2016-05-12 13:11:26 +01:00
Piotr Halama
0bfce8655e [loc] update Polish translation to latest 2016-05-12 13:05:06 +01:00
Gintaras Venslovas
a05d0a5ac2 [loc] update Lithuanian translation to latest 2016-05-12 13:03:55 +01:00
Jan-Erik Drangevåg
387ae477cb [loc] update Norwegian translation to latest 2016-05-11 11:31:49 +01:00
Arif Budiman
ddd019f2e6 [loc] update Indonesian translation to latest 2016-05-10 19:42:21 +01:00
Elvin Məlikov
e44c35613a [loc] update Azerbaijani translation to latest 2016-05-10 19:41:10 +01:00
Sippapas Wangsri
1747df09d9 [loc] additional Thai translation updates 2016-05-10 11:59:37 +01:00
Roberto Boriotti
bf73a6c451 [loc] update Italian translation to latest 2016-05-10 11:51:45 +01:00
Zia Azimi
16690df5cb [loc] update Persian translation to latest 2016-05-10 11:49:55 +01:00
Sippapas Wangsri
7d5d95efbf [loc] update Thai translation to latest 2016-05-10 11:45:29 +01:00
Chocobo1
dc1b8bd94d [loc] update Chinese (Traditional) translation to latest
* Closes #751
2016-05-10 11:42:11 +01:00
Кирилл Иванов
7c2088fee6 [loc] update Russian translation to latest 2016-05-10 11:40:04 +01:00
Sopor
e34d2ab126 [loc] update Swedish translation to latest 2016-05-10 11:38:27 +01:00
Dinis Medeiros
0915370cc8 [loc] update Portuguese (Standard) translation to latest 2016-05-10 11:36:48 +01:00
Pete Batard
55b01502ff [misc] update ChangeLog 2016-05-10 11:34:18 +01:00
Thilo Langbein
e1cd763dd2 [loc] update German translation to latest 2016-05-10 11:31:50 +01:00
Riku Brander
2ecaed9d1d [loc] update Finnish translation to latest 2016-05-10 11:29:57 +01:00
Aldis Tutins
5fd158d50b [loc] update Latvian translation to latest 2016-05-10 11:26:45 +01:00
Константин В
887ce483e8 [loc] update Ukrainian translation to latest 2016-05-10 11:24:31 +01:00
MaKK
7387d891f1 [loc] update Spanish translation to latest 2016-05-10 11:18:33 +01:00
Tiago Rinaldi
3227e2e5d1 [loc] update Brazilian Portuguese translation to latest 2016-05-10 10:51:02 +01:00
Pete Batard
f08afb4492 [loc] add missing MSG_286 to translation ChangeLog
* Also fix some spacing issues with French translation
2016-05-09 17:40:28 +01:00
Gîrlea Alexandru
2aac772974 [loc] update Romanian translation to latest 2016-05-09 17:33:22 +01:00
Tmp341
d79264846e [loc] update Turkish translation to latest
* Added and translated two lines. But i don't know, whether or not Turkish localization is 100% synchronized with English.
* Closes #750
2016-05-09 17:24:53 +01:00
Pete Batard
f65dbb11c0 [loc] add new message for listing of non-USB removable drives
* Also increase status display timeout for cheat modes
2016-05-09 13:40:54 +01:00
Pete Batard
8bd9055d6c [misc] add a retry on commandline hogger deletion
* Trying to delete the hogger could result in access denied on first attempt,
  which would leave a rufus.com behind
* Part of #714
2016-05-02 12:06:38 +01:00
Pete Batard
b6c0dd1b23 [core] fix a typo in exFAT cluster selection for >32GB drives
* Closes #745
2016-05-02 11:11:22 +01:00
Pete Batard
d7c4cb088f [core] update UEFI:NTFS to latest
* Should fix the long-standing HP firmware compatibility as per #615, #549 and others
* See 22370067f5 for details
2016-04-28 22:40:16 +02:00
Pete Batard
d4c518a4ae [misc] update UEFI:NTFS partition detection 2016-04-28 11:06:32 +02:00
Pete Batard
43d9ac046b [core] don't list non-USB removable devices by default
* Unless specifically requested with Ctrl-Alt-H
* Closes #727
* Also rename usb.c to dev.c, since we may be listing more than USB devices
2016-04-26 14:57:07 +02:00
Pete Batard
fc5d64618a update UEFI:NTFS to latest
* This introduces ARM boot support
* Also set rufus-next to 2.9 and add ARM64 UEFI detection
2016-04-24 14:19:19 +02:00
VGPlayer
99046919a5 [loc] update Malay translation to latest 2016-04-24 11:28:28 +02:00
Pete Batard
0d310d1c6b [misc] fix Coverity warnings 2016-03-25 16:38:01 +00:00
Pete Batard
e4bb1a6eb8 drop support for WDK's Windows XP targets
* Die, XP, die!!!
* Also fix a Coverity warning in checksum.c
2016-03-24 12:56:26 +00:00
Pete Batard
2c90a06668 use IFileDialog when running on Vista or later
* When compiled with MinGW, this was always disabled due to forcing XP as
  the lowest common denominator and using #ifdefs
* This should also help with OFN_NOCHANGEDIR seemingly being ignored
* Sadly, this change also adds ~20KB to our *compressed* size... :(
2016-03-24 12:55:54 +00:00
Pete Batard
cbf1a60365 v2.8 (build 886) 2016-03-22 16:03:18 +00:00
Pete Batard
3fe6894f8b [misc] increase SetLGP thread wait delay
* Someone running Rufus in a VirtualBox environment, where their CPU
  was also seeing 100% usage, reported getting the following message:
  "SetLGP: Killing stuck thread!"
2016-03-17 21:56:36 +00:00
Na Jiyoun
b1c5545205 [loc] update Korean translation to latest 2016-03-17 21:48:37 +00:00
Pete Batard
03a97ee261 [misc] improve genericity of registry functions
* Ensure that we can also handle non app specific keys
2016-03-14 13:41:20 +00:00
Pete Batard
b82462bb7d [ui] improve progress bar refresh
* Closes #699
2016-03-10 16:13:16 +00:00
Pete Batard
a10a207790 [syslinux] fallback to embedded on version match if download fails
* Could be useful for current tails user (6.03 based, same as ours)
  who want to create an UFD without downloading files.
* Also improve the buffer overflow check in syslinux/libinstaller/syslxmod.c
2016-03-08 17:28:45 +00:00
Pete Batard
1cc7fca4c5 [ui] disable BIOS boot when MBR for UEFI is selected in dual UEFI/BIOS mode
* Closes #708
2016-03-07 16:15:18 +00:00
Pete Batard
5afffd1018 [checksum] additional cleanup and optimization
* Use the commonly used function names for SHA-256 (Sigma, etc.)
* Use the same xxx_write for all, and avoid unwarranted memcpy
* Remove the bitcount
* Use nested ROR() speedup
2016-03-05 21:20:09 +00:00
Pete Batard
71520baf31 [core] factorize the img/zero disk writing code
* Also fix a WDK warning
2016-03-04 16:34:50 +00:00
Pete Batard
d385a097c0 [misc] make the affinity setup fn more generic and move it to stdfn
* Also align checksum context to 64 bytes (cache line)
2016-03-03 17:24:54 +00:00
Pete Batard
0313e5ca54 [checksum] additional cleanup 2016-03-03 14:58:49 +00:00
Pete Batard
00ffbae61f [checksum] switch to 7-zip's SHA-256 algorithm
* That's more like it! When compiled in 64-bit we get about the same speed as 7-zip
  (slower when 32-bit, but shhh, or people will ask for a 64-bit version of Rufus...)
* Looks like what was holding us back was the sha256_write() from Brad Conte's
* Also fix WDK compilation and harmonize the BE->LE conversions
2016-03-02 18:51:43 +00:00
Pete Batard
07114edc6f [checksum] more cleanup and optimization
* Why... can't I stop... trying to optimize... this thing?!?
2016-03-02 13:40:37 +00:00
Pete Batard
b89beceedf [grub] update GRUB to 2.02~beta3 2016-03-02 11:00:27 +00:00
Pete Batard
e1c7c9670b [checksum] more load balancing optimizations
* SetChecksumAffinity() now spreads the affinity evenly between cores
* Also increase the read buffer size to help with performance
* At this stage, the only limiting factor regarding performance seems
  to be the speed of the SHA-256 algorithm...
2016-03-01 17:13:37 +00:00
Pete Batard
e6d3653cac [checksum] use multiple threads and double buffering
* Can reduce the duration of checksum computations by about
  1/3rd, if you have quad core CPU or better.
2016-02-29 21:36:28 +00:00
Pete Batard
bab3453f4d [checksum] factorize common algorithm elements 2016-02-27 22:51:43 +00:00
Pete Batard
b9caf8b605 [core] fix computation of FAT size for Large FAT32
* Ridgecropt's GetFATSizeSectors() computation was incorrect
  and resulted in data sectors being "wasted" (unaddressable)
* See: http://www.syslinux.org/archives/2016-February/024850.html
* Also revert the minfatsize check of Syslinux, since it no longer fails.
2016-02-26 13:26:34 +00:00
Pete Batard
ade5639c00 [misc] more headers cleanup 2016-02-25 18:21:31 +00:00
Pete Batard
250d46e401 [core] use GetTickCount64() always where possible
* Damn you XP!!!
* Also some more code cleanup
2016-02-24 16:10:54 +00:00
Pete Batard
d20eb9262b [misc] fix MinGW compilation
* Makefile was missing from previous patch
2016-02-24 14:35:51 +00:00
Pete Batard
db0880e534 [syslinux] update Syslinux to better align with its official source
* This means disabling some warnings and removing explicit casts, but so be it...
* Also fix the minfatsize check for Large FAT32
2016-02-23 20:52:06 +00:00
Pete Batard
0e65b1c920 [ui] fix flickering of Status and Info fields
* Closes #634
2016-02-23 11:21:36 +00:00
Pete Batard
3a266d92a7 [misc] improve the reporting of ISO props 2016-02-22 12:51:27 +00:00
Pete Batard
64828934e0 [usb] fix processing of sibling device instances
* Issue introduced in f88faf1a4f
* Closes #696
2016-02-21 19:58:48 +00:00
Pete Batard
c3f47ada06 [misc] add missing.h header
* Also clean up code
2016-02-20 22:52:32 +00:00
Pete Batard
d3c9afa2fd [ui] improve removal of <8MB devices
* Closes #692
2016-02-19 12:10:17 +00:00
Pete Batard
9ebdecc124 [ui] fix label not being blanked on device removal
* Part of #694
* Also set rufus-next to 2.8
2016-02-17 11:40:10 +00:00