Commit Graph

992 Commits

Author SHA1 Message Date
PartialVolume
6e4ca14770 Tidy up endian swap code
Fix missing trailing character on odd model lengths
Remove unnecessary +1 from length calculation (strlen)
Remove debug nwipe_log message
2025-01-02 17:30:04 +00:00
PartialVolume
523ebc470a Merge pull request #633 from PartialVolume/Fix_buffer_overflow
Fixes a buffer overflow
2025-01-01 23:00:49 +00:00
PartialVolume
a41d03125c Fixes a buffer overflow
Fixes a buffer overflow in the last commit. That
commit added additional model names to the endian model
swap code but did not calloc suffient storage for the
termination character.
2025-01-01 22:54:13 +00:00
PartialVolume
a9e3dd2a77 Merge pull request #630 from PartialVolume/Add_two_new_models_to_endian_switching
Fix endian for various model names on some older USB adapters
2024-12-03 22:32:16 +00:00
PartialVolume
e3dfa55356 Fix endian for model name
This patch fixes model names for Hitachi,
Toshiba, WDC Western Digital Corporation and Seagate/ST
drives when used with some USB adapters that get the
endian incorrect. Mainly older adapters.
2024-12-03 22:24:32 +00:00
PartialVolume
5bdd87f85e Merge pull request #621 from Firminator/patch-3
Update CHANGELOG.md with links to Issues
2024-10-23 13:09:11 +01:00
Firminator
3846e1e1aa Update CHANGELOG.md with links to Issues 2024-10-22 23:00:25 -04:00
PartialVolume
c7155bf514 Update version.c
Bump minor version from 0.37.1 to 0.37.2
2024-09-14 13:37:36 +01:00
PartialVolume
deaae2b9c1 Merge pull request #607 from PartialVolume/Fix_SAS_HS2
Remove hidden sector check for SAS
2024-09-14 13:35:54 +01:00
PartialVolume
1691abdb0b Remove hidden sector check for SAS 2024-09-14 13:24:05 +01:00
PartialVolume
c837e943d7 Merge pull request #606 from PartialVolume/Add_new_search_location_for_hdparm_and_smartctl
Add a new search location when looking for hdparm and smartctl.
2024-09-13 22:08:33 +01:00
PartialVolume
5506c76b65 Add a new search location when looking for
hdparm and smartctl.

The new search location is /usr/sbin/. Previously
we searched /sbin/ and /usr/bin/ but /sbin is symbolically linked
to /usr/sbin/ so just in case there was some issue with the
symbolic link we also now search /usr/sbin/
2024-09-13 21:57:31 +01:00
PartialVolume
53383285de Update version.c
Bumped minor version from 0.37 to 0.37.1
2024-09-12 22:14:11 +01:00
PartialVolume
8a93e8856d Merge pull request #605 from PartialVolume/Fix_SAS_HPA-DCO
Fixes a issue where SAS drives always respond with hidden sectors = ??? , i.e a warning.
2024-09-12 21:34:54 +01:00
PartialVolume
0fbc1ab991 Fixes a issue where SAS drives always respond
with hidden sectors = ???, i.e warning. This
patch fixes the problem so that a SAS drive
responds with hidden sectors = not applicable.
A SATA drive connected to a SAS interface should
still respond with yes or no subject to the
interface passing HPA and DCO-identify commands.
2024-09-12 21:28:37 +01:00
PartialVolume
710478d6fd Merge pull request #602 from FreeMinded/master
Fix typo in create_pdf.c
2024-09-10 19:11:23 +01:00
Pascal Mages
1511791a25 Update create_pdf.c
Fix mini typo on PRNG algorithm
2024-09-10 17:39:58 +02:00
PartialVolume
f250aee28d Merge pull request #598 from Knogle/poc-xoroshiro
Added XORoshiro-256 PRNG implementation paper and README with detailed behaviour
2024-09-07 10:36:34 +01:00
Fabian Druschke
afdbdb7ee8 Added XORoshiro-256 PRNG implementation paper and README with detailed analysis and usage instructions. 2024-09-06 23:31:34 +02:00
Fab
4278f69640 #590: Documentation: Update Readme.md with information regarding ssd media (#597)
* #587 Introduction to SSD wipe

Added information to readme.md regarding the lack of clarity about SSD wiping.

* #587

* Added guide for SSD

* Update README.md

Extended the disclaimer regarding SSD Wipe and fixed two typos

* ssd-guide compatibility note update

Added information regarding Samsung SATA SSD compatibility to sanitize command

* Added Solidigm compatibility for sata sanitize

* formatting (no content change)

* Added .DS_Store to gitignore

Added .DS_Store due for development on mac clients.

* Update ssd-guide.md

Added clarity regarding risks of incomplete sanitization of disks due to intransparency of vendor tools.
2024-09-06 13:08:56 +01:00
PartialVolume
2e6ce1630d Merge pull request #589 from PartialVolume/toggle_font_size
toggle font size for tty terminal based use with d key. Not relevant for xorg/wayland based use.
2024-08-21 22:20:57 +01:00
PartialVolume
c024addd93 If nwipe used within ShredOS, the d key will toggle the font size, has no action for other distributions 2024-08-21 22:15:40 +01:00
PartialVolume
d1edd0570a Merge pull request #588 from Knogle/patch-5
fix type error on i686 - uint64_t, by @xambroz
2024-08-19 23:14:58 +01:00
Fabian Druschke
af41c9739f fix type error on i686 - uint64_t, by @xambroz 2024-08-19 21:04:11 +02:00
PartialVolume
97deed81db Merge pull request #581 from Awire9966/patch-1
Added DiskDump
2024-05-28 21:55:53 +01:00
Andrew Cavallo
ddc63538b7 Update README.md 2024-05-27 22:11:02 -04:00
PartialVolume
28271712db Update CHANGELOG.md v0.37 2024-05-10 20:08:28 +01:00
PartialVolume
ef312ff90d Merge pull request #577 from PartialVolume/change_nwipe.1_to_nwipe.8
Request change man/nwipe.1 to man/nwipe.8
2024-05-10 19:59:04 +01:00
PartialVolume
6d6b7ac8c1 Request change man/nwipe.1 to man/nwipe.8
Manpage is named nwipe.1 which would be correct but manpage
contains section 8 which forms a mismatch(warning) in Debian.

# Man sections
1   Executable programs or shell commands
2   System calls (functions provided by the kernel)
3   Library calls (functions within program libraries)
4   Special files (usually found in /dev)
5   File formats and conventions, e.g. /etc/passwd
6   Games
7   Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7), man-pages(7)
8   System administration commands (usually only for root)
9   Kernel routines [Non standard]

(requested by MvB)
2024-05-10 19:32:36 +01:00
PartialVolume
5140f92077 Merge pull request #576 from PartialVolume/master
Update CHANGELOG.md
2024-05-08 22:04:05 +01:00
PartialVolume
4893fa7ea0 Update CHANGELOG.md 2024-05-08 22:00:34 +01:00
PartialVolume
b83423a424 Merge pull request #575 from PartialVolume/bump_to_0.37
Bump to v0.37
2024-05-08 21:37:09 +01:00
PartialVolume
4394f24245 Bump to v0.37 2024-05-08 21:31:53 +01:00
PartialVolume
1ae76b5774 Merge pull request #574 from Polynomial-C/configure_ac_fix
configure.ac: Fix check for parted
2024-05-06 23:15:31 +01:00
Lars Wendler
fca8937f26 configure.ac: Fix check for parted
PKG_CHECK_MODULES needs all modules in a single list or else the following
error message appears during configure run:

  ./configure: 6807: libconfig: not found

because the macro interprets "[libconfig]" as the action that needs to be
done if parted was found.

Removed superfluous check for libconfig as requested by PartialVolume
2024-05-06 19:34:02 +02:00
PartialVolume
09d620c9c7 Update README.md
Update readme.md with the new prngs that will be available from V0.37+
2024-04-19 23:37:32 +01:00
Martijn van Brummelen
f0ed2fe7f0 Update nwipe.1
W: nwipe: wrong-manual-section 1 != 20 [usr/share/man/man1/nwipe.1.gz:1]
2024-04-16 20:11:10 +02:00
PartialVolume
9400ff5219 Merge pull request #571 from PartialVolume/Fix_conditional_jump_or_move_on_unitialised_value
Fix conditional jump on uninitialised value
2024-04-08 21:26:59 +01:00
PartialVolume
81fc479239 Fix conditional jump on unitialised value
This fixes a valgrind detected error. We check that
the number of real max sectors is greater than zero before
incrementing the value by 1. However ocassionaly the ioctl
call may not be able to obtain the dco and therefore the
ioctl data block is never populated. By zeroing the data
block prior to use and if it is not populated by the ioctl
call then the calculated real max sectors will be
zero and no increment will occur which is what we want.
2024-04-08 21:17:41 +01:00
PartialVolume
28095801ac Merge pull request #569 from AndCycle/fix_help
Add missing help for HMG IS5 enhanced
2024-04-05 12:14:54 +01:00
AndCycle
66a951722d Add missing help for HMG IS5 enhanced 2024-04-05 05:36:06 +08:00
PartialVolume
834348c8c8 Merge pull request #566 from Knogle/master
XORoshiro-256 and ALFG as default PRNG for 64-Bit and 32-Bit platforms. Also PRNG method as default method.
2024-03-28 22:09:22 +00:00
PartialVolume
e4a51c00c1 Merge pull request #565 from PartialVolume/Fix_valgrind_unconditional_jump_or_move_on_unitialised_value
Fix valgrind jump or move on unconditional value in nwipe config code
2024-03-28 17:38:21 +00:00
PartialVolume
00bcce475b Fix valgrind jump or move on unconditional 2024-03-28 17:17:19 +00:00
Fabian Druschke
0114ccf937 Fixed formatting using make format for options.c 2024-03-28 11:58:07 -03:00
Fabian Druschke
616a2ab236 Forgot nwipe_ in front of add_lagged_fibonacci, leading to compiling error 2024-03-28 11:56:54 -03:00
Fabian Druschke
e6e638c4dc Advocate for PRNG as default option, as well as XORoshiro-256 for 64-Bit systems, and Additive Lagged Fibonacci Generator for 32-Bit legacy systems 2024-03-28 11:51:47 -03:00
PartialVolume
8ad4fe200d Merge pull request #562 from Knogle/master
Fixed memory leak in line 328, writing 1 byte beyond allocated memory.
2024-03-26 21:39:28 +00:00
PartialVolume
a4ce92be6f Merge pull request #561 from PartialVolume/Update_pdf_with_xoro_and_fibonacci_prngs
Update PDF code with new PRNGs
2024-03-26 21:21:18 +00:00
PartialVolume
e851769025 Update PDF code with new PRNGs
Updated pdf to recognise XORshiro256 and
lagged Fibonacci PRNGs.
2024-03-26 21:17:23 +00:00