The deadly terrorist attack on the offices of French satirical magazine Charlie Hebdo shows the need to impose limits on freedom of the press, China’s official news agency argued on Sunday, as more than three million people marched in anti-terror rallies across France.

(Latest: Charlie Hebdo puts Muhammad on cover of post-attack issue).

“Charlie...