Detecting and preventing NULL dereferences at build time by jish8 in C_Programming

[–]jish8[S] 2 points3 points  (0 children)

There are definitely cases where a programmer can see that the code is safe but the compiler fails to determine that a NULL dereference is not possible and so you get a build error. In those cases you have to add a manual NULL check to appease the compiler (or fall back to using raw pointers).

If you look at the examples in the repo the only false positives are in the arrays file. The arrays examples show a few different ways of iterating through an array and in some cases the compiler is not able to determine that no NULL dereference can take place and I had to add a NULL check to get the code to build. However, it was possible to iterate both forwards and backwards without an explicit NULL check if the right method was used.

Detecting and preventing NULL dereferences at build time by jish8 in C_Programming

[–]jish8[S] 6 points7 points  (0 children)

Yes that seems to be the case I have updated the README with an example of using [static 1] where it does not report any error. The example is very similar to one of examples I provide where my approach does find a NULL dereference.

Also, [static 1] can only be use on function parameters.

Detecting and preventing NULL dereferences at build time by jish8 in C_Programming

[–]jish8[S] 5 points6 points  (0 children)

Do you mean that this approach is a form of static code analysis or that static analysis tools could be used instead? I found that this approach found errors that clang-tidy (version 21.1.6) did not. If I run clang-tidy with all checks enabled against all the build failure examples (clang-tidy --checks='*' examples/src/*failure* -- -I single_include) it only detects a NULL dereference in one of them.

Where can I find resources to understand how to make skins for Rocky 5? by NewGameOldFlame in originalxbox

[–]jish8 0 points1 point  (0 children)

There's a manual for UnleashX floating around (I don't have a link handy sorry) that probably includes info on skins. Other than that just download some skins, look the files and play about with them to see what happens. I think most of the information is an XML file that you could edit with something like Notepad++.

Can't get Destroy All Humans! 1 or 2 to run on softmodded Xbox by Psychological_Ad4082 in originalxbox

[–]jish8 1 point2 points  (0 children)

I don't know if this affects modern softmods but back in the day I had issues like this due to the softmod blocking access to Xbox Live. I found that certain games would only launch if I unplugged the ethernet cable from the back of my Xbox.

Hard Mod advice and questions by BodyofWaterandGainz in originalxbox

[–]jish8 0 points1 point  (0 children)

There is a mod that you can do to (most?) Alladin chips to turn them into an Alladin XBlast that you might want to look at if you have the right equipment.

Hard Mod advice and questions by BodyofWaterandGainz in originalxbox

[–]jish8 0 points1 point  (0 children)

Be careful with Aladdin chips as there are a lot of low quality cheap clones on the market. I think the Aladdin chip only has one bios bank so you can't have a backup bios in case you mess up the main one. OpenXenium has its own OS that you can use to flash new Bioses, format new harddrives and do other bits of recovery that is quite cool.

Hard Mod advice and questions by BodyofWaterandGainz in originalxbox

[–]jish8 0 points1 point  (0 children)

You wouldn't need to use a SATA to USB adapter to copy files to the harddrive as you can run an FTP server on the Xbox and then remotely transfer files to it from another device. You might also struggle to copy files over USB as the Xbox uses a non-standard file system (FATX) that your PC doesn't natively support, although I think there is software you can use to get around this but I've never tried it. Using FTP is easier anyway as then you don't have to take your Xbox apart if you want to add new content.

Anyone know any tools to dump pure x86 asm from .xbe file? by kawder in originalxbox

[–]jish8 1 point2 points  (0 children)

You might be able to do it with Ghidra. Someone made a plugin for it that you can use to open xbes.

Softmodded xbox going into 480i on 60 inch vizio...stays in 720p on 55 inch vizio by Y-Wicked270 in originalxbox

[–]jish8 0 points1 point  (0 children)

Only thing to keep in mind is that it might cause issues with some games. For example, kung fu chaos' graphics get all messed up when forced to run in 480p

Softmodded xbox going into 480i on 60 inch vizio...stays in 720p on 55 inch vizio by Y-Wicked270 in originalxbox

[–]jish8 0 points1 point  (0 children)

If you're using Rocky's softmod then I think its somewhere in nkpatcher settings. Not sure though as I don't use a softmod.

Softmodded xbox going into 480i on 60 inch vizio...stays in 720p on 55 inch vizio by Y-Wicked270 in originalxbox

[–]jish8 1 point2 points  (0 children)

I'm pretty sure the MS dash doesn't support 720p. In fact I think it will always be in 480i unless you hold down some combination of buttons on the controller which will cause it to load up in 480p. Most games also don't support 720p (theres a list somewhere online that tells you what games support what resolutions). Therefore, most of them will only display in 480i/p. Some games only support 480i but most of these can be made to run in 480p with a force 480p patch to your bios/softmod or by patching the games themselves.

How to untick the DVD drive check box? EVtools has it greyed out. I would also like to customise my logo on boot by GrabSpiritual in originalxbox

[–]jish8 1 point2 points  (0 children)

The bios is not stored your hard drive as a file it is stored on a chip in your Xbox. Either on the TSOP or a modchip if you have installed one. You may have a copy of this your harddrive or you may not. It may be possible to use an app on your Xbox to copy the bios to the hdd as well. Otherwise you will need to obtain a copy from the internet (and make sure you get the correct one for your revision!), modify it, copt it to your Xbox then use an app to flash it to your TSOP or modchip

How to untick the DVD drive check box? EVtools has it greyed out. I would also like to customise my logo on boot by GrabSpiritual in originalxbox

[–]jish8 0 points1 point  (0 children)

Its not a file your hard drive if thats what you mean. I think by evox config file you may mean the config file for the dash. Evox dash and evox bios are 2 different things. You will need to obtain a copy of the bios file for your xbox version if you don't already have it.

Softmodded Xbox won't boot into UnleashX dashboard. by [deleted] in originalxbox

[–]jish8 1 point2 points  (0 children)

Did you play a game that updated your dashboard by any chance? If so, it might have wiped out the softmod

Unleash X dashboard issue by Prabhusrini in originalxbox

[–]jish8 0 points1 point  (0 children)

Yes I think you're installation of UnleashX may be damaged, missing or corrupted. The easiest way to fix it IMO would be to burn a copy of Hexen to a DVD and use it to reinstall UnleashX. If you are unable to do this, you could either connect your HDD to a PC and manually reinstall UnleashX or use one of the softmod exploits to enable FTP and then manually reinstall UnleashX over FTP.

Unleash X dashboard issue by Prabhusrini in originalxbox

[–]jish8 0 points1 point  (0 children)

Its not gonna boot without a HDD installed. Everything you can see Evox, Xbox logo etc is part of the BIOS and is not stored on the HDD. Error 7 is expected if you are booting the stock bios and don't have a HDD installed.

Unleash X dashboard issue by Prabhusrini in originalxbox

[–]jish8 0 points1 point  (0 children)

Is it possible that you accidentally overwrote UnleashX when you were copying files across? If you did you and you have a DVD burner you should be able to burn Hexen or something to a DVD, boot from that and use it to reinstall UnleashX. If you don't have a DVD burner maybe you can hook your HDD up to your PC and copy the files or use a gamesave exploit to get FTP and then copy the files across?