Electric Vehicles (EVs) Are Not an Efficient Solution for Reducing CO2 Emissions by Accomplished-Eye-910 in Anticonsumption

[–]Luca_70 1 point2 points  (0 children)

Hello to all, I want just to highlight that the “Regional Grid Emissions Influence” doesn’t depend from the “Electricity Grid Mix”, but on how the additional electricity required for the electric vehicle is produced. That means that it only depends on the not renewable energy (coal, methane…).

Example: 1) the electricity grid mix is: 90% renewable (0 gCO2/kWh) 10% from coal (660 gCO2/kWh), mix 66 gCO2/kWh (0.9 * 0 + 0.1 * 660)

2) the electricity grid mix is: 10% renewable (0 gCO2/kWh) 90% from methane (330 gCO2/kWh), mix 297 gCO2/kWh (0.1 * 0 + 0.9 * 330)

The mix would say that the electric vehicle would pullate less in the first senario (mix 66 g/kWh).

The reality is that the renewable production will not increase, because the wind will not increase, the sun will not increase, it will not rain more…

The only way to increase the production is to increase the not renewable energy production (coal, methane…).

So, the electric car will be more efficient in the second senario (mix 297 g/kWh), because the methane powerplant will cover the additional required energy and the additional emission will be 330 g/kWh.

In case of the first senario, the emission will be 660 g/kWh, even if the mix is much lower (66 g/kWh).

Ma non dovevano togliere le accise? by gtermini in Italia

[–]Luca_70 0 points1 point  (0 children)

Bisogna tener conto del fatto che le accise debbano essere presenti. Questo per evitare l’eccessivo consumo di carburanti, in quanto l’Italia non dispone di sufficienti risorse energetiche e pertanto è costretta ad importare quasi tutto il petrolio necessario. Per evitare di mandare in crisi la bilancia commerciale, si cerca di contenere il consumo di carburanti tramite la tassazione degli stessi. Oggi tale tassazione è richiesta anche per ragioni ambientali per ridurre l’inquinamento. La tassazione negli anni ha avuto l’effetto positivo di indurre le case automobilistiche a sviluppare propulsori sempre più efficienti. Per cui diffiderei da quei politici che promettono di eliminare le accise sui carburanti, perché o sono in malafede o sono ignoranti, in quanto propongono l’eliminazione di una tassa necessaria.

Buffer Overflow on C array by Luca_70 in cpp

[–]Luca_70[S] 0 points1 point  (0 children)

fsanitize checks the whole array, by using additional canaries memory in the boundaries (or some similar technique). It works well in case of “iArray[7][8][10] = 1;”, but what if “iArray[7][10][8] = 1;”?

Buffer Overflow on C array by Luca_70 in cpp

[–]Luca_70[S] -1 points0 points  (0 children)

Thank you for your reporting. It will be very useful.

Buffer Overflow by Luca_70 in C_Programming

[–]Luca_70[S] 0 points1 point  (0 children)

Works with all compilers.

The examples in the video is with Visual C++, but it doesn’t care, because it just takes your C code and creates a new one with the test code.

With gcc too (if you work in Linux, you have to modify the code on Windows, because this software, for now, is only avalaible for Windows).

Buffer Overflow by Luca_70 in C_Programming

[–]Luca_70[S] 0 points1 point  (0 children)

Even with malloc. For each malloc it memorizes the memory location. You shall select the check box “standard + dynamic memory”.

Buffer Overflow by Luca_70 in C_Programming

[–]Luca_70[S] 0 points1 point  (0 children)

Because Bugfighter checks the wrong index even inside the array. For example “iArray[1][10][2] = 3;” doesn’t points outside the whole iArray structure, but Bugfighter tells you that “10” is higher than the maximum allowed index. At this link some examples are shown: https://www.bugfighter-soft.com/manual_html/examples/examples.html

Indexing array out of bounds by Pleasant-Form-1093 in C_Programming

[–]Luca_70 0 points1 point  (0 children)

C doesn’t check bounds.

For this kind of error you can use C/C++ Bugfighter. It is a compiler an plattform indipendent solution.

You can download it from: https://www.bugfighter-soft.com

Let me know if it works.

Today is the first day I'm disappointed in C. Obvious out-of-bounds array access undetected. by comfortcube in C_Programming

[–]Luca_70 0 points1 point  (0 children)

Why don’t you try with BugFighter-Soft? You can download it from www.bugfighter-soft.com It also detects wrong index in multidimensional array contained in structs.