For example, when a function is called the program (code inserted by the compiler) must store the address of the instruction to return to. So if this is the 32 bit word just before the beginning of the stack, one could do:
void foo() {
int array[5];
int var = 0;
int var2 = 0; // read in user input
printf("Enter index and value to write:");
scanf("%i", var);
scanf("%i", var2);
// malicious user might set var to -1 and var2 to an address to execute
// if say the 32-bit value before the stack variables is the instruction to // return to
array[var] = var2
// return now goes to malicious code
}
یعنی در انتهای این تابع یک دستور return وجود دارد که توسط کامپایلر به یک آدرس که این تابع را فراخوانی کرده است بر میگردد ما با تغییر این بخش از حافظه به کد مخرب پرش میکنیم و کد را اجرا میکنیم!
یک مثال برای Buffer Overflow Attack
https://www.thegeekstuff.com/2013/06/buffer-overflow/?utm_source=feedly
https://www.thegeekstuff.com/2013/06/buffer-overflow/?utm_source=feedly
Thegeekstuff
Buffer Overflow Attack Explained with a C Program Example
Buffer overflow attacks have been there for a long time. It still exists today partly because of programmers carelessness while writing a code. The reason I said ‘partly’ because sometimes a well written code can be exploited with buffer overflow attacks…
In web development, a #polyfill is code that implements a feature on web browsers that do not support the feature. Most often, it refers to a JavaScript library that implements an HTML5 web standard, either an established standard (supported by some browsers) on older browsers, or a proposed standard (not supported by any browsers) on existing browsers. Formally, "a polyfill is a shim for a browser API"
https://en.wikipedia.org/wiki/Polyfill_(programming)
https://en.wikipedia.org/wiki/Polyfill_(programming)
Wikipedia
Polyfill (programming)
code that implements a feature on web browsers that do not support the feature
The Page #Visibility API is useful for the Web application to know whether it is currently displayed on the front or not, especially to stop resource-intensive UI animations or data refreshing when it is not needed. On the mobile devices, the primary reason for that is to reduce the battery usage.
https://whatwebcando.today/foreground-detection.html
https://whatwebcando.today/foreground-detection.html
WhatWebCanDo
What Web Can Do Today: Foreground Detection
Can I rely on the Web Platform features to build my app? An overview of the device integration HTML5 APIs.
ابزاری مناسب در زمان توسعه کامپونتهای
https://storybook.js.org/
https://storybook.js.org/docs/guides/guide-react/
https://storybook.js.org/
https://storybook.js.org/docs/guides/guide-react/
Storybook
Storybook: Frontend workshop for UI development
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and documentation. It's open source and free.
هنگامی که یک تابع داریم که می خواهیم برای اجرایهای متوالی آن محدویت بگذاریم از debounce استفاده میکنیم
For those of you who don't know what a debounce function does, it limits the rate at which a function can fire. A quick example: you have a resize listener on the window which does some element dimension calculations and (possibly) repositions a few elements. That isn't a heavy task in itself but being repeatedly fired after numerous resizes will really slow your site down. Why not limit the rate at which the function can fire?
#JavaScript #Debounce Function
For those of you who don't know what a debounce function does, it limits the rate at which a function can fire. A quick example: you have a resize listener on the window which does some element dimension calculations and (possibly) repositions a few elements. That isn't a heavy task in itself but being repeatedly fired after numerous resizes will really slow your site down. Why not limit the rate at which the function can fire?
#JavaScript #Debounce Function
This media is not supported in your browser
VIEW IN TELEGRAM
augmented reality phone call
در آینده نه چندان دور این طور با دوستان خود تماس برقرار خواهیم کرد :)
در آینده نه چندان دور این طور با دوستان خود تماس برقرار خواهیم کرد :)
https://github.com/bvaughn/react-virtualized
https://bvaughn.github.io/react-virtualized/#/components/List
#react_virtualized #large_list
https://bvaughn.github.io/react-virtualized/#/components/List
#react_virtualized #large_list
GitHub
GitHub - bvaughn/react-virtualized: React components for efficiently rendering large lists and tabular data
React components for efficiently rendering large lists and tabular data - bvaughn/react-virtualized
https://blog.logrocket.com/rendering-large-lists-with-react-virtualized-82741907a6b3/
#react_virtualized #large_list
#react_virtualized #large_list
LogRocket Blog
Rendering large lists with React Virtualized - LogRocket Blog
Use the react-virtualized library to display thousands of rows of data without sacrificing usability or slowing down your web page.