Eike Decker
bd810368b0
Fixing base64 decoding error when input string is bad ( #5170 )
The following code would crash the previous version when calling MemFree:
// 53 * A
const char maliciousBase64Input[] = "AAAAAAAAAAAAAAAAAAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
int decodedSize = 0;
unsigned char *decodedData = DecodeDataBase64(
maliciousBase64Input, &decodedSize);
if (decodedData) {
MemFree(decodedData);
}
The reason is a lack of array bound checks in the decoding loop, which
corrupted here the heap (though this is platform dependent).
Adding the bound checks here prevents the memory corruption.
Tested with encoding random data of sizes 0-1023 and comparing it
with the decoded result.
před 2 měsíci
Ray
eb816898e5
Revert "Added creation-review years to examples"
This reverts commit b5e25916fc .
před 2 měsíci
Ray
84e606b8c7
Update rexm.c
před 2 měsíci
Ray
1d4d8da3e9
Removed temp code to generate updated examples_list.txt
před 2 měsíci
Ray
3e59797a68
REXM: ADDED: Read examples years created/reviewed info
ADDED: `UpdateSourceMetadata()`
před 2 měsíci
Ray
424cdebda5
Updated examples_list.txt to include example year created/reviewed
Reviewed star used, aligned with empty star and examples header
před 2 měsíci
Ray
b5e25916fc
Added creation-review years to examples
před 2 měsíci
Ray
47bdfb91a2
Update README.md
před 2 měsíci
Ray
8e52aee853
Update rtext.c
před 2 měsíci
Ray
389800fd34
REXM: REVIEWED: `ScanExampleResources()`
před 2 měsíci
Ray
43305c4865
REXM: ADDED: `RemoveVSProjectFromSolution()`
před 2 měsíci
Ray
d980642421
Merge branch 'master' of https://github.com/raysan5/raylib
před 2 měsíci
Ray
51aa8776bb
Update rtext.c
před 2 měsíci
github-actions[bot]
55a1c58b64
Update raylib_api.* by CI
před 2 měsíci
Ray
0203a47bf9
REDESIGNED: `LoadTextLines()`/`UnloadTextLines()`
před 2 měsíci
Ray
8116ebd9bb
Update rexm.c
před 2 měsíci
Ray
a51cb7fe30
REXM: Updated some examples inconsistencies
před 2 měsíci
Ray
91bc8d9b10
REXM: Remove duplicate entries on examples list on Update process
před 2 měsíci
Ray
7646d08751
Updated some examples with inconsistencies
před 2 měsíci
Ray
fb42819eab
Added project to folder in solution
před 2 měsíci
Ray
d418704c0b
REXM: Update examples collection
před 2 měsíci
Ray
293477e2b5
Reorganized examples list
před 2 měsíci
Ray
6d7dd43c13
Update core_input_gestures_testbed.c
před 2 měsíci
Ray
e21093d434
REXM: RENAME: example: `core_input_gestures_web` --> `core_input_gestures_testbed`
před 2 měsíci
Ray
c17f82a78c
REMOVED: `core_basic_window_web`
The example is not following examples conventions and it will be moved to `others` with a new name
před 2 měsíci
Ray
d97e0a8ac7
REXM: RENAME: example: `shaders_texture_drawing` --> `shaders_texture_rendering`
před 2 měsíci
Ray
427b0d2653
Update rexm.c
před 2 měsíci
Ray
5f9465d569
Update rexm.c
před 2 měsíci
Ray
d79f294af0
Update rexm.c
před 2 měsíci
Ray
41dee9e9f9
REXM: RENAME: example: `shaders_fog` --> `shaders_fog_rendering`
před 2 měsíci
Ray
3cbe911613
REXM: RENAME: example: `models_billboard` --> `models_billboard_rendering`
před 2 měsíci
Ray
b17936de22
REXM: RENAME: example: `models_billboard` --> `models_billboard_rendering`
před 2 měsíci
Ray
3659eee994
Update rexm.c
před 2 měsíci
Ray
ba046a5d60
REVIEWED: `DecompressData()`, fixed buffer copying
před 2 měsíci
Ray
f9e6c85cce
Update rexm.c
před 2 měsíci
Ray
9b99c5b04e
REXM: Adding some `UpdateSourceMetadata()` -WIP-
před 2 měsíci
Ray
64641c6a01
Update raudio.c
před 2 měsíci
Ray
dd0587e12a
Update shaders_texture_drawing.c
před 2 měsíci
Ray
2e376c6f5b
Update shaders_spotlight.c
před 2 měsíci
Ray
48eac60171
REVIEWED: Potential issue with animated normals on OpenGL 1.1
před 2 měsíci
Ray
2a295210fb
Update shaders_spotlight.c
před 2 měsíci
Ray
1008066644
Removed `core_loading_thread` project
před 2 měsíci
Ray
a7e62e73d8
REXM: REMOVE: example: `core_loading_thread`
This example was POSIX only and had some special requirements for web, it made it more difficult to be managed from collection standard examples format.
It will be re-added in the `others` category, that is not processed for web.
před 2 měsíci
Ray
5cbe013273
REXM: RENAME: example: `models_skybox` --> `models_skybox_rendering`
před 2 měsíci
Ray
d8ee8a45c4
REXM: RENAME: example: `textures_draw_tiled` --> `textures_tiled_drawing`
před 2 měsíci
Ray
33327760f1
REXM: RENAME: example: `text_draw_3d` --> `text_3d_drawing`
před 2 měsíci
Ray
785ad4015c
REXM: RENAME: example: `textures_polygon` --> `textures_polygon_drawing`
před 2 měsíci
Ray
cadd28e5a0
REXM: RENAME: example: `text_raylib_fonts` -> `text_sprite_fonts`
před 2 měsíci
Ray
2cb387b50a
REVIEWED: Font atlas image generation, added some comments #5141
před 2 měsíci
Ray
f53cd449ce
Update config.h
před 2 měsíci