Comments (3)
Don't pass a null img_ptr
from minilibx-linux.
shouldn't be the function protected against those inputs?
from minilibx-linux.
No.
Most of the time the input will be valid, so it's a waste of processing having to check if it's valid at each function call.
Functions shouldn't expect invalid inputs, if it receives invalid input, it should segfault so the programmer know's that the input is invalid. If you're not sure your input is valid, then you should check it before calling the function.
from minilibx-linux.
Related Issues (20)
- man/man1 directory identicall to man/man3 HOT 1
- mlx_destroy_display() HOT 1
- Last version of libmlx.a causes "warning: size of symbol `mlx_int_param_event' changed" issue with program made with the previous version. HOT 2
- Pull #22 Introduced issue with exit on red cross HOT 1
- Segfault in mlx_loop HOT 1
- Transparent pixels overwrite existing pixels on mlx_put_image_to_window HOT 3
- mlx_new_window segfault, mlx_init returns 0 HOT 3
- ubuntu 22.04
- mlx_mouse_hide causes memory leaks HOT 2
- mlx_do_key_autorepeatoff persists on machine HOT 1
- mlx_mouse_move doesn't move cursor
- get_screen_size gets both of the screen's size (Windows 11)
- SIG \
- OLDPWDが更新されていない! HOT 1
- cd
- having an issue to mlx_init, it returns 0 HOT 1
- Invalid read on DestroyNotify
- Can't compile HOT 1
- Here is a fix that makes makes movement a bit better
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 minilibx-linux.