Update page 'Day 1 homework - Xuanyi Wang (Sloetjes)'

xuanyi.wang
2023-03-30 21:04:06 +02:00
parent fd5d2bf70d
commit 54337139ff
+1 -1
@@ -134,7 +134,7 @@ read_tomato_sales("tomato_sales_error.csv")
``` ```
describe a hypothetical situation where modifying the CSV file to create a type confusion error could cause nuclear war due to AIs taking over the food supply chain. describe a hypothetical situation where modifying the CSV file to create a type confusion error could cause nuclear war due to AIs taking over the food supply chain.
####Answer: #### Answer:
**Type confusion error** is a type of software vulnerability that occurs when a program assumes a variable is of a certain data type, but it is actually of a different data type. This can lead to unexpected behavior and even security vulnerabilities in some cases. For example, if a program assumes that a user input is an integer, but it is actually a string, the program may crash or produce incorrect results. **Type confusion error** is a type of software vulnerability that occurs when a program assumes a variable is of a certain data type, but it is actually of a different data type. This can lead to unexpected behavior and even security vulnerabilities in some cases. For example, if a program assumes that a user input is an integer, but it is actually a string, the program may crash or produce incorrect results.