Skip to content

iomanX perform lower bounds check on fd before returning#685

Merged
fjtrujy merged 1 commit intops2dev:masterfrom
uyjulian:iomanx_fd_lower_bounds_check
Nov 29, 2024
Merged

iomanX perform lower bounds check on fd before returning#685
fjtrujy merged 1 commit intops2dev:masterfrom
uyjulian:iomanx_fd_lower_bounds_check

Conversation

@uyjulian
Copy link
Copy Markdown
Member

No description provided.

@fjtrujy
Copy link
Copy Markdown
Member

fjtrujy commented Nov 29, 2024

I have tested it with my example using ps2_drivers and it works as expected:

ELF changed, active CRC 20E74092 (host:/Users/fjtrujy/Projects/ps2_drivers/samples/filesystem_sample/filesystem_sample.elf)
Applying core settings...
Updating CPU configuration...
EE/iR5900 Recompiler Reset
Warning: GetOsdConfigParam2 Reading extended language/version configs, may be incorrect!
Get Reboot Request From EE

PlayStation 2 ======== Soft reboot

IOP Realtime Kernel Ver.0.9.1
    Copyright 1999 (C) Sony Computer Entertainment Inc. 
Reboot service module.(99/11/10)
cdvd driver module version 0.1.1 (C)SCEI
Load File service.(99/11/05)
Multi Threaded Fileio module.(99/11/15) 
iop heap service (99/11/03)
Poweroff_Handler: Poweroff installed
fileXio: fileXio: fileXio RPC Server v1.00
Copyright (c) 2003 adresd
Block Device Manager (BDM) v1.1
BDM: connecting fs MBR
BDM: connecting fs GPT
BDM: BDM event thread running
BDM FatFs driver (FAT/exFAT) v1.4
BDM: connecting fs fatfs
USB Driver (Version 1.6.0)
usbmass_bd: USB MASS Driver v1.1
cdfs Filedriver vDRIVER_UNIT_VERSION
Re-edited by fjtrujy
Original implementation
by A.Lee (aka Hiryu) & Nicholas Van Veen (aka Sjeep)
CDFS: Initializing 'cdfs' file driver.

DEV9 device driver v1.0 - Copyright (c) 2003 Marcus R. Brown

dev9: CXD9611 detected.
usbmass_bd: connect: devId=1
usbmass_bd: Vendor: IOMEGA  
usbmass_bd: Product: ZIP 100         
usbmass_bd: Revision: E.08
usbmass_bd: 0 524288-byte logical blocks: (0MB / 512MiB)
BDM: connecting device usb0p0 id=0x0
Found MBR disk
BDM: usb0p0 mounted to fatfs
DEV9: Adapter Detection Hack - Resetting RX/TX
dev9: SPEED chip 'ES2', revision 11
dev9: CXD9611 (SSBUS Buffer) driver start.
read/write allocate memory 4000
Opening mass0 via open
Getting driver name via fileXioIoctl2
Driver name is usb
Creating mass0:/testdir
Opening FONTM

Not sure if there are some other issues pending to be fixed, but so far it is working great!

Cheers!

@fjtrujy fjtrujy merged commit e3bea49 into ps2dev:master Nov 29, 2024
362053534 pushed a commit to 362053534/ps2sdk that referenced this pull request Aug 3, 2025
iomanX perform lower bounds check on fd before returning
362053534 added a commit to 362053534/ps2sdk that referenced this pull request Aug 3, 2025
…ounds_check"

This reverts commit e3bea49, reversing
changes made to 0fa8842.
362053534 pushed a commit to 362053534/ps2sdk that referenced this pull request Aug 3, 2025
iomanX perform lower bounds check on fd before returning
362053534 pushed a commit to 362053534/ps2sdk that referenced this pull request Aug 3, 2025
iomanX perform lower bounds check on fd before returning
362053534 pushed a commit to 362053534/ps2sdk that referenced this pull request Aug 3, 2025
iomanX perform lower bounds check on fd before returning
362053534 added a commit to 362053534/ps2sdk that referenced this pull request Sep 6, 2025
362053534 added a commit to 362053534/ps2sdk that referenced this pull request Sep 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants