How is ethereum network protected against infinite loops in views? In a normal transaction, you have to pay gas fee, so it would be too expensive for you, but calls to views are for free.
For example this:
contract Tester {
function loo() public pure returns(string memory){
uint i = 1;
uint c = 0;
while(i == 1){
c = c + 1;
}
return "good";
}
}
I tried to call this in Remix but it crashed.