Comments (3)
@SpicerXD I'm afraid I can't see the issue, it gets the textLength of provided text to verify the following parameters do not go out of that range, it's just a security check.
from raylib.
Reviewed the function and I can't see the issue, please provided a more detailed description and an error code sample that illustrates the issue if it persists.
from raylib.
(This is @SpicerXD, I'm just on a work account.)
Sorry, I'll be more clear.
TextSubText can be given a position and a length.
But it will first call TextLength on that source text. Which will scan for a null or segfault if it doesn't find one.
I think it'd be safer if the length check in TextSubText instead only checked for null up to position + length.
from raylib.
Related Issues (20)
- [build] CMake error trying to build examples HOT 6
- [examples] FXAA anti-alising example for RenderTexture HOT 8
- [rmodels] Supporting Blockbench HOT 4
- [rmodels] Incorrect animation of glTF model HOT 30
- [raudio] Incorrect mapping of wave data in `LoadWaveSamples()` HOT 1
- src/external/stb_image_resize2.h:2422:22: error: implicit declaration of function 'vld1q_f16' is invalid in C99 [-Werror,-Wimplicit-function-declaration] HOT 2
- [examples] Suggestion for improving the performance of the waving cubes sample HOT 3
- [module] ChromeOS with Linux bug HOT 1
- Is there a plan to add Vulkan? HOT 1
- [rshapes] Line drawing bug when using Camera2D HOT 2
- [rcore] Caps Lock release is not registered on Desktop platforms HOT 4
- [raudio] `MA_ON_THREAD_ENTRY` and `MA_ON_THREAD_EXIT` are not exposed
- [parser] No functions in the output from `raymath.h` HOT 3
- [core] `CloseWindow()` keeps an invisible window in dock, causing issues in input handling HOT 5
- Does MaximiseWindow() work on Mac? HOT 1
- [build] CMake: no option to install extra headers: `rcamera.h`, `rlgl.h`, `raymath.h` HOT 5
- [rcore] Add analogues of button press/release/down/up functions for gamepad axes HOT 1
- Why mingw doesnt recognize raylib.h HOT 1
- [rcamera] extend Camera API with some basic Camera Frustum related functions ? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raylib.