095 The main computer that keeps crashing
Meng Fei turned around, walked across the stormy deck, and walked towards the cab.
"Sorry, Mr. Meng, the captain is dealing with the ship's failure. Please wait in the lounge for the time being."
A male waiter politely blocked him.
Meng Fei ignored him and continued to move forward two steps.
In addition to the male waiter, two other security guards in uniform rushed over and the three of them blocked the front together.
Interestingly, both security guards were holding guns.
It is not a pistol, but a shotgun that is often used for escorts. It has the size of a submachine gun and has a thick barrel.
Although this thing has a limited range, it has great power in melee combat within ten meters.
Qingmangguo's gun management is extremely strict. Even security guards are not everyone qualified to take guns. They are escort security guards of security companies.
The Ai family treated the yachts that were coming and going as an escort ship, and each trip was treated like a bank cash delivery truck.
It was precisely because Meng Fei knew that the Ai family was strong enough to ensure safety that he risked the pursuit and took the risk of chasing the ship.
"Mr. Meng, according to the Maritime Safety Traffic Act, tourists without corresponding licenses are prohibited from entering the cab of moving ships."
One of the security guards warned in a serious tone.
Before Meng Fei could answer, Aiting walked out from behind him and lit up the police badge.
"We are investigators at the Bureau of Aliens, suspected that someone had destroyed equipment and hijacked the ship and needed to go into the cab to investigate."
According to the "Superpower Law", the investigator of the Superpower investigation is equivalent to the police who deals with the Superpower case.
If they encounter cases where they cannot determine whether they are involved in superpowers, they can directly intervene. Even if they make a mistake, they can be transferred to the Criminal Investigation Bureau afterwards.
"this……"
The three of them made way, Meng Fei pushed open the door and walked in.
It is actually inaccurate to say that the captain is dealing with the fault.
The first mate took the crew door and tried to anchor outside, while the captain lay alone on the sofa in the cab to look at his cell phone.
Seeing someone coming in, he put away his phone. He originally wanted to drive people away, but saw Aiting showing the police badge with his left hand and holding a gun with his right hand.
"What's wrong with the ship?" Meng Fei asked.
"No need to see, I have sent a rescue signal, just wait for the rescue."
The captain answered decisively.
In this cockpit, he is the only expert, and he can ignore other people's suggestions. From this point of view, the police badge does not work.
"Why don't you need to look at it? Can't you fix the fault?"
"The rest of the things are good, but there is something wrong with the main control computer.
“That thing has never broken since I drove this boat.
"It's broken now, I can only replace it, not repair it. We don't have the conditions to replace it here."
For the captain, the main control computer controls the communication, navigation, power, and almost everything that can be controlled is a truly magical thing.
Usually he just needs to fill in the parameters, and it seems that it will never break.
If it is really broken, just ask someone to pull it away with a click and then change to a new one.
It is a black box that never needs to be opened. When the lid is opened, even if the gods don’t understand what is inside.
"Where is the main control computer?"
Meng Fei asked.
"Here, here."
The captain walked over and opened the door of the waterproof rack next to the main console, showing a smile:
"Look at it casually, don't be polite."
The next half of the sentence is nothing you can say, no matter how you look at it, it is useless.
Meng Fei really took a look.
High-end blade-type industrial control machine, four parts are redundant and inserted into the rack.
This type of machine is known as waterproof, shock-proof and dust-proof, and can be turned on normally even if it is soaked in water. The price is ridiculously high, but the things inside are so cheap that they are so simple.
The simpler the thing is, the less likely it is to break, especially if it is four times redundant. Any of the four machines will not be affected if it is hung.
But the power lights of these four machines are on, but the console is pitch black and the legendary brick-turned-up.
Meng Fei pressed the restart button of one of the units. The hard disk squeaked for a few seconds and then turned off again.
"scanning."
If four machines become bricked at the same time, then the four machines have the same bug. This is not impossible.
But if the bugs on four machines happen at the same time, it will take some coincidence or special arrangements.
Now his system scanning function is completely different from that time.
When he first traveled through time, the scanning of the strongest bug system had nothing to do with him. Now every line of code and instruction scanned by the system will appear in his mind.
Of course, it is one thing to see the code, and it is another thing to understand it.
He often boasts of one of the strongest programmers in human history, but he will definitely not understand it in a few seconds if he throws tens of thousands of lines of code in front of him.
But it doesn't matter, the strongest bug system instantly positioned the problem. So what he saw was the wrong code.
He also helped him reverse the machine code into C.
//The memory used to accept the extended buffer
unsigned char *ext_buf = NULL;
//Judge whether the notification received has extended attributes
if(notify-)type | NT_TYPE_EXT)
{
//If there is, copy the extension buffer
memcpy(ext_buf,
notify-)ext_buf,
notify-)ext_buf_len);
}
This is a super obvious bug.
Because the memory of ext_buf is not allocated at all, if you receive an extended notification with an extension tag in the type, you will copy data into the empty pointer and will undoubtedly crash.
But why did the captain say that he has never broken since he started the ship?
It seems that the reason is simple, because the boat has never received notifications of this type of extension.
As long as the type in the received notification does not contain the NT_TYPE_EXT tag, it will never crash.
But now these four main control computers cannot be started. In fact, they are not really unable to get up.
Instead, as soon as they start, they will receive a notification with this rare attribute quickly, and then crash and restart automatically.
After repeated restarts, they will automatically enter a permanent shutdown state and need to be turned on manually.
In other words, someone is constantly sending messages to this ship that crashes its main computer!
"Is this boat communicating with Zhangdao?" Meng Fei asked.
"Of course, the yacht command center in Zhangdao will constantly send requests to inquire about the location, course and speed of the ship, and automatically record it every day."
The captain looked up at Meng Fei, thinking to himself that this guy could solve this impossible problem with just a pair of eyes and empty hands?
"Where is the signal receiver? Turn it off."
Meng Fei said in an orderly tone.
It was obvious that the main control computer had become bricked, but I asked me to turn off the signal receiver?
It is so ridiculous to ask the so-called superpower investigator to repair the ship.
The captain walked to the main console impatiently, turned the mechanical switch and forced the power supply of the signal receiver in the command center.
"What's the use?"
He looked at the so-called investigator in front of him with a playful look, trying to see him look futile and embarrassed.
Meng Fei ignored him and pressed the start button of the main control computer again.
If the system is used to repair it, he can solve the problem instantly. But he wanted to confirm one thing, that is, whether the signal sent from Zhangdao triggered the bug.
If this is true, then investigate the yacht command center, who started sending this signal for what reason, and maybe you can dig out more.
Although Aiting said she was not interested in her father's property, it did not mean that the dandy boys on Zhangdao would not regard her as their enemy.
Chapter completed!